Saturday, February 23, 2013

Reverse selected elements in jQuery

You can reverse the selected elements in jQuery using get and reverse methods.  
Just use get and reverse with any jQuery selectors like  
For example   
Will select all tr elements in order of appearance while
will select the elements in reverse order of appearance.  

Live Demo.

No comments:

Post a Comment