Response title
This is preview!
I personally rather .bind().
- jQuery.fn.click = function( data, fn ) {
- if ( fn == null ) {
- fn = data;
- data = null;
- }
- return arguments.length > 0 ?
- this.bind( 'click', data, fn ) :
- this.trigger( 'click' );
- };
© 2013 jQuery Foundation
Sponsored by and others.