Force client-side JavaScript event to fire programatically using jQuery

0

Posted by Joe | Posted in JavaScript, jQuery | Posted on 15-01-2010

Earlier today I needed to force a clide side event to fire programatically using jQuery.

I found you can do this easily with the jQuery trigger method:

$("#myControl").trigger("change");

The above will trigger the change event of the control with ID ‘myControl’

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit

Write a comment