Return to Snippet

Revision: 14908
at June 16, 2009 13:20 by arpit


Initial Code
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" 
});

Initial URL
http://jquery-howto.blogspot.com/2009/01/working-with-jquery-13-new-event-object.html

Initial Description


Initial Title
JQuery event pass data

Initial Tags
jquery

Initial Language
JavaScript