php jquery selected
<p>I having long list of select options predefined.</p>

<p>So i tried something like this when i try to edit the content</p>

<pre><code>&lt;body&gt;
&lt;select id="test" ....
&lt;option value='99'&gt;99&lt;/option&gt;
&lt;/select&gt;
&lt;script language="javascript"&gt;
$(document).ready(function () {
$("select#test option[value='&lt;?php echo $row['test']; ?&gt;'").attr("selected", "selected");
});
&lt;/script&gt;
&lt;/body&gt;
</code></pre>

<p>php value is 99
Why this isn't working? Anything i did wrong? </p>
