Hi, I'm looking to create a custom search field with a text input that clears the default text when the user clicks into the field. Anyone have the code to make it clear the text? thanks Sunst4r
You'll want to use Javascript to put the text in and then remove it when the user puts focus on the input. This might be better than having the text as a default value of the input which the non-javascripted user has to manually delete before filling it in. Try Javascript forums.
I'll check some more out, sort of on the right track but having some issues with the ones from other forums. Just wondered if anyone had some code already that i could use. cheers Sunst4r
Try JavaScript similar to this: form.gsearch.select() form.gsearch.value="" Code (markup): Where gsearch is the input text name value. Don't forget to issue the callback on focus. Q...