This is a discussion on Date/time stamp a form field as the form is submitted within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all... Can any one tell me how can i get date/time stamp a form field as the form ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all.. function stamp() { document.myForm.dateandtime.value = new Date(); } <form name="myForm" onSubmit="stamp()"> <input type="hidden" name="dateandtime"> <input type="submit"> </form> Thanks.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prefill a text form field with the current date. | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 03-18-2008 09:09 PM |
| store the current date in a hidden form field. | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-10-2008 09:36 PM |
| Date and time displayed in a hidden form field. | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 02-01-2008 09:47 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 |
| How can I clear the form field values after the user has submitted the form for clien | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 11-01-2007 11:39 PM |