Hi,
Code:
$(document).ready(function(){
$.post("volgetname.php", function(data){
$('select#vol').html(data);
alert("Select value is: " + data);
//alert returns correct data in firefox and ie
});
$("#vol").change(function(){
displayrecord();
});
function displayrecord(){
//next line should get value of selected option
var volnum=$('select#vol'). val()
alert("value at line 79: " + volnum);
//This alert in firefox returns the value of the select option. In ie, it returns undetermined.
etc.
etc.
I am trying to identify an issue between firefox and IE.
The entire program runs well in firefox.
I have located the area at which ie quits cooperating.
The method of getting the selected option value of a select box on a form is causing a conflict in ie.
This is the form:
Quote:
<form name="volselect" id="volselect" method="post" action="volgetname.php">
<select name="vol" id="vol" size="1" style="width:20em">
<option>FullName</option>
</select>
</form>
|
Shoud I change the syntax for the select.val for IE?
Thanks,
Andy