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

Why wont my form submit? 1

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi All,

I want to be able to submit a form when a user clicks on a link and not via a submit button.

Link code shown here

<a href=&quot;#&quot; onClick=&quot;setParams('dev')&quot;>Houses</a>

The setParams function has the following line of code at the end to perform the submit where the form name is ztsuppform.

document.ztsuppform.submit();

However this does not submit the form...any ideas?

Thanks
 
Following code wil work:

<a href=&quot;javascript:setParams('dev')&quot;>Houses</a>

Hope this helps...



<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top