Print contents of a list box as comma-separated values using JQuery
<p>I have a select box defined as shown below. I want to print out the name and email address of each item in the select box as comma seperated values, like</p>

<pre><code>Tom Wayne,tom@xyz.com
Joe Parker,joe@xyz.com
Peter Simons,peter@xyz.com
</code></pre>

<p>Any way to accomplish that using JQuery?</p>

<pre><code>&lt;select multiple="multiple" name="search_results"&gt;
&lt;option  value="tom@xyz.com"&gt;Tom Wane&lt;/option&gt;
&lt;option value="joe@xyz.com"&gt;Joe Parker&lt;/option&gt;
&lt;option value="peter@xyz.com"&gt;Peter Simons&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Thank You</p>
