Answers for "target.getelementsbytagname is not a function"

0

getelementsbytagname is not a function javascript

getElementsByClassName return a collection. 
So you just have to do this 

$('directoryresults')[0].getElementsByTagName('div').lenght;
Posted by: Guest on June-30-2021

Code answers related to "target.getelementsbytagname is not a function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language