PDA

View Full Version : Re-appearing init. val. causing form to send blank text area


deafboyzaudio
11-05-2009, 10:19 PM
Hey,
I have this code: <textarea name="setup" cols="30" rows="2" class="indent" id="setup" tabindex="60" onfocus="if(this.value == 'Got ideas for site content? Link to it here...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Got ideas for site content? Link to it here...';}">Got ideas for site content? Link to it here...</textarea>As you can see this has a init val that reappears if nothing is typed in the text area after focus...

My problem is that if i type something like 'test' in that text area, when the form is sent to my email, that text area only is blank, all others work....

How can I fix this so that the form sends the input? Thanks