I am trying to use jQuery's hasClass function. It doesn't seem to work when I use it like this. I would appreciate it if anyone can work out how to use hasClass in this situation.
The error I am getting is
numValueElement.hasClass is not a function
if($(numValueElement.hasClass("tag")))
The key line throwing this error is this one if($(numValueElement.hasClass("tag")))
$(".numberValue").click
(
function ()
{
var numValueElement = this;
var propertyId = numValueElement.id;
$(".numberBounds").filter("#"+propertyId).toggle();
if($(numValueElement.hasClass("tag")))
{
}
}
);