g5515
Technical User
- Dec 6, 2007
- 3
Hi guys...
This is my first post. I really need help... very desperate already. The codes are really simple... and it only loads on the same page (required).
See code below:
<select id="A" name="mylist" onchange="history.go()">
<option value="1">First</option>
<option value="2">Second</option>
</select>
<script type="text/javascript">
var x = document.getElementById("A").value;
if (x == 1)
{
document.write('Displayed First');
}
else if (x == 2)
{
document.write('Displayed First');
}
</script>
This script perfectly runs on IE6 and Mozilla FireFox, but unfortunately not in IE7. It will only display the content of the initial list item.
This is my first post. I really need help... very desperate already. The codes are really simple... and it only loads on the same page (required).
See code below:
Code:
<option value="1">First</option>
<option value="2">Second</option>
</select>
<script type="text/javascript">
var x = document.getElementById("A").value;
if (x == 1)
{
document.write('Displayed First');
}
else if (x == 2)
{
document.write('Displayed First');
}
</script>
Code: