Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get last element of getelementsbyclassname in js

var final = document.getElementsByClassName('test');
final[final.length - 1]
 
PREVIOUS NEXT
Tagged: #element #getelementsbyclassname #js
ADD COMMENT
Topic
Name
4+7 =