I have a form that uses a servlet I don’t have access to for validation. The powers that be want the field to be prefilled with a value “Enter promotion code” – unfortunately, since placeholder doesn’t work with IE, the field is going through the validation process on submit for the default text.
Is there a way to clear the value on that field if the value equals the default text when the form is submitted? (jquery or javascript)
thanks!
You should toss this somewhere on load.
If you aren’t using jQuery on the page yet, it’ll look like this: