1.

How to fire a DOM event manually with jQuery?

Answer»

As of JQUERY 1.6, the .prop() method provides a way to explicitly retrieve PROPERTY values, while .attr() retrieves attributes.

Consider a DOM ELEMENT defined by the HTML markup

<input TYPE="checkbox" checked="checked" /> $('#check').prop('checked') returns the checked property of the element which is true $('#check').attr('checked') returns the checked attribute which is "checked".


Discussion

No Comment Found