+ 1
In what instance would trigger() be useful....an example to show its use
2 Respostas
+ 8
For example:
you put a "click" event on an item, its code will be executed only when the specific item is clicked, if you want other elements to execute that code too, you could tell them to trigger() the "click" event of that item instead of rewriting the code...
+ 2
thanks @valentinhacker