Hello,
What I need to do is: when a drop down box is changed, I want to send its value and that of another form element to a function. This then posts another page with the variables.
Anyways this works fine in explorer but returns a null for value1 (but returns value2) when I use netscape.
Here is my code:
And this function in the head:
Can anyone help?
What I need to do is: when a drop down box is changed, I want to send its value and that of another form element to a function. This then posts another page with the variables.
Anyways this works fine in explorer but returns a null for value1 (but returns value2) when I use netscape.
Here is my code:
Code:
<select name="varA" onchange="hot_fault(form1.value1.value,form1.value2.value);">
<option value="">Select</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
And this function in the head:
Code:
<script>
function hot_fault(value1,value2) {
window.location = "contact.asp?varA=" + value1 + "&varB=" + value2 + "&opt=1";
}
</script>
Can anyone help?