Answers for "get all elements with id js"

0

javascript get all elements of an id

// You can't
// You can only have 1 instance of an id per document
// You need to use classes instead

var x = document.getElementsByClassName("example");
Posted by: Guest on November-07-2020

Code answers related to "get all elements with id js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language