I have a form with a drop down list box containing years, (ex. 2003, 2004, etc.) I have a hyperlink that needs to pass the year that the user clicked from the drop down box. How can I do this?
<script>
function GotoPage(theUrl){
var sel = document.theForm.theDropDown;
var txt = sel.options[sel.selectedIndex].text;
window.location.href= theUrl + "?theYear=" + txt;
}
</script>