[jQuery] Sending Arguments to Event
I understand jQuery has parameters stored in event.data.*
But Is there a way to achieve this using jQuery ?
var someVar = {
init : function () {
$('#someID').bind("click", ['arg1', 'arg2'],
this.add);
},
add : function(p1, p2) {
alert(p1 + ' : ' + p2); // Doesnt show arg1 : arg2
}
};
Thanks