S
shankwheat
I've been using this little script to change the <a href=""></a> value
of a link which works well.
<script language="javascript" type="text/javascript">
function ordering(sorder)
{
var link = document.getElementById("mylink").href =
"http://www.mysite.com?Option="+sorder;
}
</script>
<a id="mylink" href="http://www.mysite.com/">Create PDF</a>
I'm wondering how I would do the same thing to change the value in a
selectbox like this?
<select size="1" name="menu">
<option value="http://www.mysite.com?Option=reports">Reports</option>
<option value="http://www.mysite.com?Option=pdf">Create PDF</option>
<option value="http://www.mysite.com?Option=bylaws">Bylaws</option>
</select>
of a link which works well.
<script language="javascript" type="text/javascript">
function ordering(sorder)
{
var link = document.getElementById("mylink").href =
"http://www.mysite.com?Option="+sorder;
}
</script>
<a id="mylink" href="http://www.mysite.com/">Create PDF</a>
I'm wondering how I would do the same thing to change the value in a
selectbox like this?
<select size="1" name="menu">
<option value="http://www.mysite.com?Option=reports">Reports</option>
<option value="http://www.mysite.com?Option=pdf">Create PDF</option>
<option value="http://www.mysite.com?Option=bylaws">Bylaws</option>
</select>