maxdeveloper
Programmer
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"));
alert(target_node.hasClass("selected"));
and yes, I did include JQuery.js
Code:
var target_node=event.target;
alert("name is:"+target_node.getAttribute("name"));
alert(target_node.hasClass("selected"));
and yes, I did include JQuery.js