This is a discussion on How do I set and access the value of a hidden form field? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all... How do I set and access the value of a hidden form field? Thanks & Regards P.vinothkumar...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all... How do I set and access the value of a hidden form field? Thanks & Regards P.vinothkumar |
|
#2
| |||
| |||
| Hi all.... <form name="anotherName"> <input type=hidden name="hiddenName" value="initial"> </form> <script language="JavaScript"> document.write(document.anotherName.hiddenName.val ue+'<br>'); document.anotherName.hiddenName.value = 'hello world'; document.write(document.anotherName.hiddenName.val ue+'<br>'); </script> Thanks.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| store the current date in a hidden form field. | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-10-2008 08:36 PM |
| Date and time displayed in a hidden form field. | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 02-01-2008 08:47 PM |
| Date/Time stamp a form field as the form is submitted | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 01-17-2008 07: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 10:39 PM |
| How can I pass a hidden value to a form and submit that form when a text link is clic | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 10-17-2007 07:07 AM |
Our Partners |