comma-separated input displayed in another div prior to submission
<p>I'm trying to allow users to input multiple id #'s separated by commas in an input field. I want to then take that input, separate the data by comma's and insert them into separate <code>&lt;li&gt;</code> tags to display in another div, (for verification purposes), prior to submitting. Here is what I have so far...please be gentle...I've not had to do this before.</p>

<pre><code>if ($("#" + prodID).find("input.text").val() == value) {
   $("#" + prodID).find("input.text").val("");
}
</code></pre>

<p>This is where I am so far and don't know where to go from there. I believe that I will need to add <code>replaceWith()</code> to the end of <code>.val("");</code> but am not sure. If there are examples I can look at I'm sure I can figure this out.</p>

<p>Any assistance is greatly appreciated.</p>

<p>Here is the HTML. (sorry I missed it at first)</p>

<pre><code>&lt;div id="selCodes"&gt;
&lt;p&gt;Your selected codes &lt;span&gt;&lt;a href="#"&gt;Clear&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;!--inserted by clicking "okay"--&gt;
          Some Account - 0123&lt;a href="#" title="delete"&gt;&lt;img alt="delete" src="imgs/delete.png"&gt;&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;button id="subCodes"&gt;Submit&lt;/button&gt;
&lt;/div&gt;&lt;!-- /#my-selections --&gt;

&lt;h4&gt;Narrow results by&lt;/h4&gt;

&lt;div id="prodId"&gt;
  &lt;a href="#"&gt;Item code&lt;/a&gt;
    &lt;span&gt;&lt;a href="#"&gt;Clear&lt;/a&gt;&lt;/span&gt;        
    &lt;p&gt;Choose item from dropdown. Type code or codes, (separated by comma), and click the add button to create filters.&lt;/p&gt;
        &lt;select id="code-type"&gt;
            &lt;option&gt;Prod code&lt;/option&gt;
            &lt;option selected="selected"&gt;Prod UPC&lt;/option&gt;
            &lt;option&gt;Master UPC&lt;/option&gt;
            &lt;option&gt;CC&lt;/option&gt;
        &lt;/select&gt;            
        &lt;input type="text" value="" /&gt;  
        &lt;button&gt;OK&lt;/button&gt;
&lt;/div&gt;
</code></pre>

<p>I have a funny feeling I'm way off-base.</p>
