In IE 8.0 The code below works perfectly
In Firefox The code returns an UNDEFINED value for the KEEP property.
Is there a solution to this problem???
===============================================================
<html>
<head>
<title>test</title>
<script type="text/javascript">
function validate_form(thisform){
with (thisform) {
var Occurence = TableId[TableId.selectedIndex];
alert( Occurence.value + " " + Occurence.text + " " + Occurence.keep);
return false }
}
</script>
</head>
<body>
<form method="POST" onSubmit="return validate_form(this)">
<p align= "center">TEST<br/><br/>
<SELECT id= "TableId" name="TableId" size="2">
<option value='1' keep='No' >a</option>
<option value='2' keep='Yes'>b</option>
</SELECT>
</p>
<br/>
<p align= center><input type="submit" value="test"></>
</form>
</body>
</html>
In Firefox The code returns an UNDEFINED value for the KEEP property.
Is there a solution to this problem???
===============================================================
<html>
<head>
<title>test</title>
<script type="text/javascript">
function validate_form(thisform){
with (thisform) {
var Occurence = TableId[TableId.selectedIndex];
alert( Occurence.value + " " + Occurence.text + " " + Occurence.keep);
return false }
}
</script>
</head>
<body>
<form method="POST" onSubmit="return validate_form(this)">
<p align= "center">TEST<br/><br/>
<SELECT id= "TableId" name="TableId" size="2">
<option value='1' keep='No' >a</option>
<option value='2' keep='Yes'>b</option>
</SELECT>
</p>
<br/>
<p align= center><input type="submit" value="test"></>
</form>
</body>
</html>