Jquery Exclude a Selector?
- by Wes
I've got a form that I clear on focus. I've selected the whole form and it works great except that the submit button goes blank when I click it.
how can I exclude my input of input#submit from the following code?
$(".wpcf7-form input, .wpcf7-form textarea").focus(function() {
if( this.value == this.defaultValue ) {
this.value = "";
$(this).addClass('filled');
}
}).blur(function() {
if( !this.value.length ) {
this.value = this.defaultValue;
$(this).removeClass('filled');
}
});