View Single Post
Old 12-01-2012, 08:40 PM   PM User | #18
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,335
Thanks: 13
Thanked 207 Times in 207 Posts
DanInMa is on a distinguished road
Code:
$(function(){
	var imgSrcArray=[];
        var imgTxtArray=[]; 	
	$('.prod img').each(function(index) {
		imgSrcArray.push($(this).attr('src'));
                imgTxtArray.push($(this).text());
                 alert(imgSrcArray[index]+imgTxtArray[index]);

	});
});
something like this?
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote