Monday, February 13, 2012
How to count elements and take attribut of first?
I want to count all img elements and take attribute (alt) of FIRST of it. My try:
/* need count and take forst */
var objid = $(this).attr('alt');