Remove default values
-
I would like the default values in my form to be removed when that element is focused on, but not if something different has been written on blur.
I have been using this code for other forms, but it doesn’t work when I put it into the Responsive Contact Form script area:
//remove form values when user clicks in the field. $('.rmv-dft-val').click( function() { if (this.value == this.defaultValue) { this.value = ''; } } );//close on click $('.rmv-dft-val').blur( function() { if (this.value == '') { this.value = this.defaultValue; } } );// close on blur
The website is https://taragaucher.com/directory/contact/
https://www.ads-software.com/plugins/responsive-contact-form/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Remove default values’ is closed to new replies.