JS - Get specific element with querySelectorAll

0 votes
93 views
added Dec 16, 2020 in Javascript by lcjr First Warrant Officer (9,190 points)
var pgImg = document.querySelectorAll('.qa-q-view-content p img')[0].src;

 

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