Posted by punnu35 on 10/17/07 22:01
I am trying to do this simple thing in html. I have a select list and
when you click the button the first element should hide. It works
fine
in firefox but not in IE. I have tried all sorts of things but could
not do it. Any help...
<html>
<body>
<select id="pid" name="pid" multiple>
<option id="a" value="a">a</option>
<option id="b" value="b">b</option>
<option id="c" value="c">c</option>
</select>
<input name="submit" value="Start Analysis" type="button"
onClick="javascript:show_hide()">
</body>
<script type="text/javascript">
function show_hide() {
var a = document.getElementById("a");
a.style.display="none";
}
</script>
</html>
[Back to original message]
|