/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var e = jQuery.Event("click"); e.user = "foo"; e.pass = "bar"; $("a").trigger(e); // or the shortcut $("a").trigger({ type:"click", user:"username", pass:"password" });
URL: http://jquery-howto.blogspot.com/2009/01/working-with-jquery-13-new-event-object.html