jquery dynamic adding hidden field
<pre><code>$().ready(function() 
  {
  $("#add").click(function() 
    {
    var vals = $("#txtaddfeature").val();
    if(vals !='')
      $('#FeatureLists').prepend('&lt;option value="' + vals + '" selected="selected"&gt;' + vals + '&lt;/option&gt;');
    $('#txtaddfeature').val('');
    });
  });
</code></pre>

<p>Ok after adding the value to the select list as above</p>

<pre><code>$('#FeatureLists').prepend('&lt;option value="' + vals + '" selected="selected"&gt;' + vals + '&lt;/option&gt;');
</code></pre>

<p>I want to create a dynamic hidden field with id=vals defined above and set it value to value entered in the textbox . how can i do that</p>
