Alexandre Plennevaux wrote:
hello,
i'm trying to test a condition whether a link has a given class, and have it return "true" or "false". if ($(this).attr("class")=='refresh') {
   alert("changing page");
    return true;
   }
else
{
return false;
}

Try, from memory:
if ($(this).is(".CLASSNAME")) {
    // IF TRUE
} else {
    // IF FALSE
}

Regards,
Michael Price

Reply via email to