Hi,
I have a combobox and a link object in an html page. When a user click that link, the value of the href, must be the value of the combobox in that moment.
how can i implement this using javascript?
thanks,
Mitch
There is my code:
<script LANGUAGE=JAVASCRIPT>
<!--
function function1(){
return './destinationpage.asp?'+form1.combo1.value
}
//-->
</script>
(...)
<form method="post" name="form1">
A Href="javascript:function1();">Link1</a>
<select name="combo1" size=1>
<option value="1" selected>option1</option>
<option value="2" selected>option2</option>
<option value="3" selected>option3</option>
<option value="4" selected>option4</option>
(...)
</select>
</form>
I have a combobox and a link object in an html page. When a user click that link, the value of the href, must be the value of the combobox in that moment.
how can i implement this using javascript?
thanks,
Mitch
There is my code:
<script LANGUAGE=JAVASCRIPT>
<!--
function function1(){
return './destinationpage.asp?'+form1.combo1.value
}
//-->
</script>
(...)
<form method="post" name="form1">
A Href="javascript:function1();">Link1</a>
<select name="combo1" size=1>
<option value="1" selected>option1</option>
<option value="2" selected>option2</option>
<option value="3" selected>option3</option>
<option value="4" selected>option4</option>
(...)
</select>
</form>