set link parameter from selection

Q

quickcur

Hi, I have a page with the following code.

<input type=button value="Show"
onclick="location.href='my.do?para=XXXX'">
....
<form>
....
</form>

<select name="myselect">
<option value=1>1
<option vlaue=2>2
<option value=3>3
....
</select>

When user clicks the Show button, I would like to replace the XXX by
the
selected number from the selection "myselect". Since there is a form
between <input button> and the selection, I can not use form for the
Show button.

How can I write the onclick="location.href='my.do?para=XXXX'"?

Thanks,

qq
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top