Bookmark Topic Watch Topic
  • New Topic

Clearing textbox Sorry post got closed for some reason had to repost

 
James Hambrick
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
I didnt see a Java Script area but if there is one please move this post into it for me.

I have a simple form


code:
--------------------------------------------------------------------------------

<form action="MAILTO:email@domain.com" method="post" enctype="text/plain">City Name:<input input type="text" name="City Name" ><input type=Submit value="Send"> </form>

--------------------------------------------------------------------------------



I want to clear out the City Name text box when the user clicks the submit button. Ive seen javascripts that clear out the text box when the user clicks inside the textbox(onFocus) and I tried to make it work but could not. I would also like to have the form set the subject line for me too I used to know how in college, but have not used it awhile and got rid of the book. Help!
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
I moved the other post, James! See the enormous link near the top directing you to the post's new location.
 
    Bookmark Topic Watch Topic
  • New Topic