Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery .each() method

0 votes
8 views
added Sep 5 in jQuery by LC Marshal Lieutenant (14,570 points)
recategorized Oct 17 by LC Marshal
//to print all the elements from element
var floorplanImg = $('.detail-content.floorplan img');

$(floorplanImg).each(function(index) {
  console.log( index + ": " + $(this).attr('src'));
});

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...