Reputation: 5525
http://jquery.com/upgrade-guide/1.9/
I got this below detail from the link. But what is it that is changing in trigger(click) event? I wasnt clear with this below explanation.
link Checkbox/radio state in a .trigger()ed "click" event
When the user clicks on a checkbox or radio button, the event handler sees the node in the state it will be in if event.preventDefault() is not called on the node--in essence, its new state. So for example, if the user clicks on an unchecked checkbox, the event handler will see a checked box. Before 1.9, a synthetic event triggered by either .trigger("click") or .click() would see the checkbox in the opposite state than that of a user action. This has been fixed in 1.9 to reflect the same checked state as a user-initiated action.
Upvotes: 0
Views: 118