Skip to content

Simple jQuery plugin that reverses the results returned from a jQuery result set.

Notifications You must be signed in to change notification settings

michael-lawrence/jquery.reverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#jquery.reverse

Simple plugin that reverses the results from a jQuery result set.


###Usage

<div id='module1' class='module'>Module 1</div>
<div id='module2' class='module'>Module 2</div>
<div id='module3' class='module'>Module 3</div>
var modules = $('.module');
=> [<div id='module1' class='module'>Module 1</div>
<div id='module2' class='module'>Module 2</div>
<div id='module3' class='module'>Module 3</div>]

modules = modules.reverse();
=> [<div id='module3' class='module'>Module 3</div>
<div id='module2' class='module'>Module 2</div>
<div id='module1' class='module'>Module 1</div>]

Bower installation

bower install jquery.reverse

About

Simple jQuery plugin that reverses the results returned from a jQuery result set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published