To loop through elements backwards in jQuery, use the below trick:
	$(function(){
	var reversedSet = $("li").get().reverse();
//get() will return an array of elements, and reverse() will reverse it
 
	$(reversedSet).each(function(){
		//this will put the reversed set ine each function. 
	});
});
					
					
					
				
				
				
				How to Loop through Elements Backwards in jQuery
To loop through elements backwards in jQuery, use the below trick:
	$(function(){
	var reversedSet...
	
		backwards elements jquery loop
		Also tagged with one or more of these keywords: backwards, elements, jquery, loop
		
		
		
		
		
		
			
				Designer's Resources → 
			
				Tutorials → 
			
		
		
		Creating a Form in CSS and JQUERYStarted by Salwa, 16 Jul 2014  | 
	
	
		
  | 
	
		
	 | 
	
||
		
		
		
		
		
		
			
				Web Design → 
			
				Javascript → 
			
		
		
		JQuery scrollTop()Started by SmartWeb, 12 Mar 2013  | 
	
	
		
  | 
	
		
	 | 
	
||
		
		
		
		
		
		
			
				Web Design → 
			
				Javascript → 
			
		
		
		jQuery stop()Started by DesGuru, 02 Nov 2012  | 
	
	
		
  | 
	
		
	 | 
	
||
		
		
		
		
		
		
			
				Web Design → 
			
				Javascript → 
			
		
		
		How to Access iFrame Elements in jQueryStarted by SmartWeb, 16 Aug 2012  | 
	
	
		
  | 
	
		
	 | 
	
||
		
		
		
		
		
		
			
				Web Design → 
			
				Javascript → 
			
		
		
		How to delay animation in jQueryStarted by SmartWeb, 16 Aug 2012  | 
	
	
		
  | 
	
		
	 | 
	
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










