IT Community - Software Programming, Web Development and Technical Support

How can I clear the form field values after the user has submitted the form for clien

This is a discussion on How can I clear the form field values after the user has submitted the form for clien within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all... How can I clear the form field values after the user has submitted the form for client side ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-01-2007, 11:37 PM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default How can I clear the form field values after the user has submitted the form for clien

Hi all...


How can I clear the form field values after the user has submitted the form for client side processing?


Thanks...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-01-2007, 11:39 PM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default Re: How can I clear the form field values after the user has submitted the form for c

Hi all...

<SCRIPT LANGUAGE="JavaScript"><!--
function mySubmit() {
setTimeout('document.myForm.reset()',2000);
return false;
}
//--></SCRIPT>

<FORM NAME="myForm" onSubmit="return mySubmit()">
<INPUT TYPE="INPUT">
<INPUT TYPE="SUBMIT">
</FORM>

Thanks...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop a form from being submitted? kingmaker HTML, CSS and Javascript Coding Techniques 3 03-05-2008 02:55 AM
Date/time stamp a form field as the form is submitted itbarota HTML, CSS and Javascript Coding Techniques 1 02-06-2008 10:16 PM
Date/Time stamp a form field as the form is submitted itbarota HTML, CSS and Javascript Coding Techniques 2 01-17-2008 08:47 PM
Will my form be submitted when the user presses the Enter key? itbarota HTML, CSS and Javascript Coding Techniques 1 09-13-2007 02:44 AM
Can I prevent a form from being submitted again? oxygen HTML, CSS and Javascript Coding Techniques 1 07-27-2007 03:44 AM


All times are GMT -7. The time now is 11:03 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0