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

jQuery - get img src from element with .attr

0 votes
26 views
added Dec 16, 2020 in jQuery by lcjr Second Warrant Officer (3,820 points)
var imgDesc = $('.qa-q-view-content img').attr('src');
console.log(imgDesc);

 

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.
...