Tuesday, March 12, 2013

.trigger() | jQuery API Documentation

.trigger() | jQuery API Documentation: "1
2
3
4
$('#foo').on('custom', function(event, param1, param2) {
alert(param1 + "\n" + param2);
});
$('#foo').trigger('custom', ['Custom', 'Event']);"

'via Blog this'