permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes Clear email field after submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Clear email field after submit" Watch "Clear email field after submit" New topic
Author

Clear email field after submit

Gene B. Gwx
Greenhorn

Joined: Feb 12, 2011
Posts: 3
I'm trying to clear the email text box after it has been submitted and added to a text file. Here's what I have now:

<div class="mailWrap">
<form action="#" name="newsletterForm" id="newsletterForm">
Your E-mail: <input type="text" name="email" id="email" class="newsletterInput" /><br />
<input type="submit" name="Submit" value="Add My E-mail" class="newsletterButton" />
<span class="loader"><img src="loading.gif" alt="loading" /></span>
</form>

Not quite sure how to add a clear command to the email text box. Any help would be greatly appreciated.

Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

What is actually processing the form submission? The action value of "#" will simply cause the form to be submitted back to the same HTML page. There's got to be more going on that you are showing us.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gene B. Gwx
Greenhorn

Joined: Feb 12, 2011
Posts: 3
Here's all the code. Thanks for taking the time to look into this.



Gene B. Gwx
Greenhorn

Joined: Feb 12, 2011
Posts: 3
Updated. Much better now. Thanks.
 
Don't get me started about those stupid light bulbs.
 
subject: Clear email field after submit
 
Similar Threads
configuration of Weblogic server for JSP
Fieldset is not working
model dailogbox in javascript
Fieldset is not working
Prepopulate a form field with data entered on a previous page