Skip to main content

Bug Tracker

Side navigation

Ticket #5452: test-5452.html
File test-5452.html, 0.5 KB (added by dmethvin, November 05, 2009 05:42PM UTC)

IE being stupid about option values

<html>
<head>
<title>test</title>
</head>
		<script type='text/javascript' src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.js'></script>
<script>
window.onload=function(){
//document.getElementById("mysel").value = "";
$("#mysel").val("");
};
</script>
<body>

<select id="mysel" multiple="multiple" size="5">

    <option>ALL</option>
    <option>Name1</option>
    <option value="">Name2</option>
    <option>Name3</option>

</select>

</body>
</html>

Download in other formats:

Original Format