Js can yo check ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Js can yo check ?

//Make only inputs with type 'text' have a gray background var background= document.querySelector("dIv") //Give both <p>'s inside the 3rd <div> a pink background var pink = document.getElementsByTagName("p") for ( var i=0; i<pink.length ; i++){ pink[i].style.background ="pink";}

12th Apr 2020, 5:39 PM
Улпан Аянбекова
Улпан Аянбекова - avatar
1 Answer
+ 3
What you want to do here?
12th Apr 2020, 6:29 PM
A͢J
A͢J - avatar