Bonus Methods - Yapapaya/jquery-cloneya GitHub Wiki
For its own functioning, Cloneya incorporates two additional methods from other sources:
triggerAll
The standard triggerHandler
can only trigger one event. triggerAll
triggers all the events that you'll give it.
$element.triggerHandler( 'click' );
$element.triggerHandler( 'mouseover' );
$element.triggerAll( 'click mouseover focus' );
Source http://stackoverflow.com/questions/11850625/jquery-trigger-multiple-events
Note triggerHandler
is different from trigger
.
closestChild
Is similar to closest
but for children instead of parents.
This is a plugin by Andrey Mikhaylov and you can get more details here: https://github.com/lolmaus/jquery.closestchild