I m trying to make all textareas remove default text on focus, except those of class "pre-fill". But the problem is the textareas of class "pre-fill" are still being selected and included.
Suggestions on how to fix this? Thanks.
jQuery(document).ready(function inputHide(){
$( textarea, input:text, input:password ).not($( .pre-fill )).focus(function() {
if ($(this).val() === $(this).attr( defaultValue )) {
$(this).val( );
}
}).blur(function() {
if ($(this).val()=== ) {
$(this).val($(this).attr( defaultValue ))
}
});
});