hey people,
I want to pass the value of a select option in the url when the user selects an option from a select field without a submit button to help populate another select field automatically.
The below code worked until I added another form to the same page above it. I've made sure all form names are different so it must be the Javascript.
Does anyone have a suggestion as to how I could change the javascript to make my page work.
HTML Code:<select name="deptid" id="deptid" class="filter_dropdown" onchange="filter('deptid');">HTML Code:<script type="text/javascript"> function filter(which) { //alert(which); document.forms[0].action="stats.php?deptid="+which; document.forms[0].submit(); } </script>






Bookmarks