Answers for "javascript get all elements of an id"

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 "javascript get all elements of an id"

Code answers related to "Javascript"

Browse Popular Code Answers by Language