I'm trying to use hasClass to test whether an element has the class "selected": the first alert verifies that the node was retrieved correctly, the second alert crashes...I can't figure out why...
Code:
var target_node=event.target;
alert("name is:"+target_node.getAttribute("name"))...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.