I'm using Bootstrap to develop my php platform.
When i try to use this javascript snippet
if(result == "OK"){
// If the result is OK applies some effects
$("#signup" + item).removeClass("error");
$("#signup" + item).addClass("success");
} else {
// Applies some effects and shows the error
$("#signup" + item).removeClass("success");
$("#signup" + item).addClass("error");
}
with this html code
<input class="xlarge" id="signupUsername" name="signupUsername" size="30" type="text">
Nothing happens. The "error" or "success" effects are not applied.