By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

submit with value from select

P: n/a
Hi:

Here is my page, I do not know how to write the onlcik="..." line.

<input type=button value="Submit"
onclick="location.href='http://mypage.html?param=***">

<form>
....
</form>

<select name="param">
<option value=1>1
<option value=2>2
....
</select>

When user click the "Submit" button, I would like to replace the *** in
the link by the value from selection "param". Please not that there is
a form between the button and the selection, so I can not use form for
the button part.

How can I wirte my onclick="..." line?

Thanksm

qq

Jan 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
qu******@yahoo.com said the following on 1/8/2006 12:44 AM:
Hi:

Here is my page, I do not know how to write the onlcik="..." line.

<input type=button value="Submit"
onclick="location.href='http://mypage.html?param=***">

<form>
....
</form>

<select name="param">
<option value=1>1
<option value=2>2
....
</select>

When user click the "Submit" button, I would like to replace the *** in
the link by the value from selection "param". Please not that there is
a form between the button and the selection, so I can not use form for
the button part.

How can I wirte my onclick="..." line?


You write it by reading my other reply to your other post that you
posted just a little while ago.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.