.val() is not working in jquery?
<p>Can we also pass string values to some variable and call through below code</p>

<pre><code>$(document).ready(function() {
    var i = "1, 2, 3";
    $('#textvalue').val(i);
});
</code></pre>

<p>does it work?</p>

<p>Its not working don't know how :(</p>

<p>There is one more post related to this</p>

<p>Link: <a href="http://stackoverflow.com/questions/5327331/jquery-val-not-working-when-setting-a-variable">jQuery .val() not working when setting a variable</a></p>

<p>Thanks in advance :)</p>
