Tuesday, 10 September 2013

Javascript syntax issue?

Javascript syntax issue?

Is the IF conditional logic correct? It works for test1 but not test2 or ""
if($(this).attr("value") === ("test1" || "test2" || ""))
{
submitForm($(this).attr("value"));
}

No comments:

Post a Comment