| Author |
submitting a form
|
Leonardo Go
Greenhorn
Joined: Jun 13, 2004
Posts: 13
|
|
can i submit a form using a text instead of a submit button ? what i want is when a user clicks on a word "Submit the form" within my page then i can submit form1 to a jsp page. how can i do this ? thnx in advance
|
Problems are made to be solved.
|
 |
Kj Reddy
Ranch Hand
Joined: Sep 20, 2003
Posts: 1697
|
|
|
Make "Submit the Form" as link and on click event of that link call a JavaScript function, and in the javascript function submit your form. If you need more details let me know.
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
|
Moving this to the HTML and JavaScript forum...
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
<p onclick="document.FormName.submit()">Text</p> or <a href="javascript:"document.FormName.submit()">Text</a> Eric
|
 |
 |
|
|
subject: submitting a form
|
|
|