.trigger()
Execute all handlers and behaviors attached to the matched elements for the given event type. .trigger( eventType, extraParameters ) .trigger( event ) $('#foo').bind('click', function() { alert($(this).text()); }); $('#foo').trigger('click'); $('#foo').bind('custom', function(event, param1, param2) { alert(param1 + "\n" + param2); }); $('#foo').trigger('custom', ['Custom', 'Event']); Button #1 B..
jQuery
2010. 12. 27. 14:48
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크