Tuesday, September 30, 2014

Manually call events tucked into in-tag attributes on elements in jQuery.

In jQuery, $('#foo').change(); will trigger the JavaScript code in an onchange event on a dropdown menu as $('#bar').click(); will trigger the onclick event's code at a button.

No comments:

Post a Comment