+ 2

How to make setAttribute only work on child elements from Div Id?

This is my code. Sorry, my English is bad 🙏 https://code.sololearn.com/WXDcLT0aejH3/?ref=app

3rd Feb 2019, 11:12 AM
Slamet Fauzan
Slamet Fauzan - avatar
2 Answers
+ 2
var inp1 = document.querySelectorAll("#demo input")[0]; var inp2 = document.querySelectorAll("#demo input")[1]; https://code.sololearn.com/W0GKiqHQJ1Fj/?ref=app
3rd Feb 2019, 12:14 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Thanks 🙏😀
4th Feb 2019, 3:49 AM
Slamet Fauzan
Slamet Fauzan - avatar