I am looking to create a system which on signup will create a subdomain on my website for the users account area.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
I want to count all img elements and take attribute (alt) of FIRST of it. My try:
$('img').each(function(index) {
/* need count and take forst */
if(index=0){
var objid = $(this).attr('alt');
}
});
Can you help me with this?
var $images = $('img');
ReplyDeletevar imgCount = $images.length;
var altAttrOfFirst = $images.first().attr('alt');
var $img= $('img');
ReplyDeletevar count = $img.length;
var attr = $img.first().attr('alt');