Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Button

Status
Not open for further replies.

novice2004

Programmer
Feb 2, 2004
62
US
I have a Jvacript Form with Submit button that works.

<TD align="center" colSpan=2>
<a href="javascript:document.SubmitForm.submit()" onClick="return validateUSPersonalInfo(SubmitForm)">
<img src="../Pictures/Submit.gif" border=0 alt="Submit" width="73" height="17"></a>
</TD>



I would like to replace "Submit.gif" button with button made by CSS.
How do I set it up so retain the functions of the previous button.

<TD width="50" valign="middle" align="right">
<input class="loginBtn" type="submit" name="submit" value="">
</TD>

Thank you.
 

In your form tag, use the onsubmit event:

[tt]<form ... onsubmit="return validateUSPersonalInfo(SubmitForm);">[/tt]

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top