Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript last elements same class

var someElementsItems = document.querySelectorAll(".some-element");
console.log(someElementsItems[someElementsItems.length -1])
 
PREVIOUS NEXT
Tagged: #javascript #elements #class
ADD COMMENT
Topic
Name
8+1 =