adding a combo box at run time - JQUERY
<p>i have added html elements at run time using append
Code:</p>

<pre><code>function addFormField() {       
    $("#inputss").append("&lt;strong&gt;asif&lt;/strong&gt;"); }
</code></pre>

<p>but how can i add a select element at run time that looks like this..</p>

<p>PHP Code:</p>

<pre><code>&lt;select name="pre_req"  id="pre_req" class="inputs"  
value=&lt;? if($this-&gt;uri-&gt;segment(2)=='update') echo $results['pre_req']?&gt;&gt; 

&lt;option value='None'&gt;None&lt;/option&gt;             

&lt;? foreach($combo1 as $row)
echo "&lt;option value=$row[sub_name]&gt;$row[sub_name&lt;/option&gt;";
?&gt;

&lt;/select&gt;  
</code></pre>
