select box option value not getting perfect while generating selectbox dynamically by using jquery
<pre><code>&lt;?php
$res = mysql_query($qry) or die(mysql_error());
while($data = mysql_fetch_row($res))
{
echo "&lt;option value=".$data[0]."&gt;" .$data[0]. "&lt;/option&gt;";&lt;br&gt;
} 
?&gt;
</code></pre>

<p>In this case, supposing <code>data[0]</code> has sample data value then inside value only sample is storing. How to get whole value?</p>

<p>I'm calling this file by <code>$.ajax</code> method.</p>
