This is a discussion on How can I pass a hidden value to a form and submit that form when a text link is clic within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all..... How can I pass a hidden value to a form and submit that form when a text link ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all..... How can I pass a hidden value to a form and submit that form when a text link is clicked? Thanks & Regards itbarota... |
| Sponsored Links |
| |||
| Hi.... <form name="myForm"> <input type="hidden" name="myHiddenField"> <input type="submit" name="mySubmitButton"> </form> <script language="JavaScript"><!-- function submitForm() { document.myForm.mySubmitButton.click(); } //--></script> <a href="#" onClick="document.myForm.myHiddenField.value='Hell o World';this.href='javascript:submitForm()'">Hello World</a> Thanks.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can we submit a form without a submit button? | sundarraja | PHP Programming | 4 | 02-29-2008 09:37 PM |
| Submit a Form using Javascript | velhari | HTML, CSS and Javascript Coding Techniques | 3 | 11-14-2007 03:33 AM |
| How do I set and access the value of a hidden form field? | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 1 | 10-16-2007 04:14 AM |
| How do I submit a form or a part of a form without a page refresh in ASP.Net using C# | mobilegeek | ASP and ASP.NET Programming | 1 | 07-23-2007 10:38 PM |
| Submit without form | Anand | PHP Programming | 1 | 07-19-2007 03:36 AM |