I have a form containing 2 select menus. I need to be able to clear the value of "id" when the "report" select menu is changed.
I've tried:
but it doesn't seem to work. Any ideas on how I can achieve this would be greatly appreciated.
Code:
<form method="GET" name="form">
<select name="report" onchange="this.form.submit();"></select>
<select name="id" onchange="this.form.submit();"></select>
</form>
I've tried:
Code:
<select name="report" onchange="this.form.submit(); document.GetElementByName('id').value = '';")
but it doesn't seem to work. Any ideas on how I can achieve this would be greatly appreciated.