I having long list of select options predefined.
So i tried something like this when i try to edit the content
<body>
<select id="test" ....
<option value='99'>99</option>
</select>
<script language="javascript">
$(document).ready(function () {
$("select#test option[value='<?php echo $row['test']; ?>'").attr("selected", "selected");
});
</script>
</body>
php value is 99 Why this isn't working? Anything i did wrong?