Hello there,

Got a question regarding the submit event. Got a script that adds text
inside text fields when the page loads. There's probably a word for
this, but I'm not aware of any, so let's call it "in-line form
labels". You've probably seen it before - a name field which says
"Enter your name..", with the text inside it disappearing on focus,
and re-appearing on blur if you left the field blank.

These default values needs to be cleared out when submitting the form,
so that e.g. required fields won't be filled with text by default. I
tried to do this onsubmit. The script indeed removes the values when
submitting the form, but for some reason, the values are still
submitted to the server.

Here's a paste with the code in question: http://pastie.org/199544

Any ideas?

Reply via email to