Hi there, I'm having trouble trying to show a hidden class that has already been applied to an element. I'm trying to use the show() method with the class and selected element, to no avail. Any help would be appreciated!
HTML
<label for="name" class="overlay required"><span>Name...</span></label>
<input class="input-text" type="text" id="name" />
CSS
label.required:after {
content: "Required";
float: right;
color: #07305e;
display: none;
}
Javascript
jQuery("form input").each(function(){
var input = jQuery(this);
if (input.val() == 0){
input.prev().effect("pulsate", { times:1 }, options.pulseSpeed).focus();
jQuery(".required", input.prev()).show(); //Show hidden class .required
}