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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS Form Submit

Status
Not open for further replies.

imstillatwork

IS-IT--Management
Joined
Sep 26, 2001
Messages
1,605
Location
US
this works:

document.frm_vote.submit();

where frm_vote is the value form name attribute

If I want to submit the form by ID rather than NAME, is this correct?

document.getElementById('frm_vote').submit();

It works, but I am js retarded, and I figured if I came up with it, I better make sure it's correct...



Kevin
 
That looks fine to me, too. If it works, that's a good sign.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top