JS - Get the first element in document with specific CSS class with document.querySelector

0 votes
207 views
added Aug 8, 2019 in Javascript by LC Marshal Captain (25,790 points)
document.querySelector(".classname");

 

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