I have a drop down list with 2 potential values (Y or N) and they're all defaulted to Y. I'm trying to find some code that will change the value of all the drop down lists to N on the click of a button. I keep getting the error 'el is not defined'
This is the code I have at the moment:
Code: Select all
<script>
function changeValue() {
document.test.list.el.selectedIndex = 0;
}
</script>