Answers for "queryselectorall with id"

4

javascript select element with attribute

document.querySelectorAll('[attrname="value"]');
Posted by: Guest on June-02-2020
1

js querySelectorAll

// https://www.google.com/
// this puts a border around the 'a' tags of 'Google offered in' section.

// within this id find all the 'a' tags
var languages = document.querySelectorAll("#SIvCob a");


// loop through all the a tags a add a border to the tags
for(var i = 0; i < languages.length; i++){
    document.querySelectorAll("#SIvCob a")[i].style.border = "1px solid black";

}
Posted by: Guest on May-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language