For some reason, I can\'t get this to work.
My options list is populated dynamically using these scripts:
function addOption(selectId, value, text, sele
SCRIPT
<script type="text/javascript">
$(function(){
$("#gender").val("Male").attr("selected","selected");
});
</script>
HTML
<select id="gender" selected="selected">
<option>--Select--</option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
Click Here More Details