• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submitting a form

 
Leonardo Go
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the HTML and JavaScript forum...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<p onclick="document.FormName.submit()">Text</p>

or

<a href="javascript:"document.FormName.submit()">Text</a>


Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic