[jQuery] Event Capture Architecture
I am developing an application in which I have to define click events
for many elements( the list may go up to hundreds). So what would be
the best way to capture these event
Either using a *
bind( $('*') );
and in click function get the id of target element and code
accordingly
OR use a separate bind method for every element.
$('#elementID').click(function(){
bind( );
});