+ 3
Mofey check this. i hope this is what you looking for
https://code.sololearn.com/Wj6RWKE87QTa/?ref=app
+ 2
document.getElementsByClassName(".button");
+ 2
Mofey are you using a computer or the phone ?
it seems sololearn code playground not showing me the results as expected
+ 2
$("article")
+ 2
$("article")
not $article
Where are the ( and "?
+ 2
Mofey you can use “document.querySelector("article:nth-child(1)");”
https://code.sololearn.com/WQWRf21pIzTW/?ref=app
+ 1
you can select by className or tagName , this return an array of nodes:
document.querySelectorAll(".myclass")
document.querySelectorAll("button")
+ 1
sorry i didnt understand what you want to do , can you try to explain
+ 1
Mofey glad to help you.😉
+ 1
hey guyss
+ 1
Sophie Harradine please do not spam in Q/A Discussions.
0
You can access by ClassName or by TagName



