I am trying to build a simple menu using jquery and it won't work. I'm getting a NaN error when trying to get the id and class of this. The elements in question have both an id and a class. What's going on?
$(document).on("click", function()
{
if($(this).attr("class") != "userOptButtons" && $(this).attr("id") != "usernameDisplay")
$("#userMenu").animate({"top": "-198"});
});