multi-select list
<p>I have multi-select listbox. I am calling a function in on-change event and i pass the value from the multiselect list. When i do so i get the 1st selected vale and not all the multi-selected value.</p>

<pre><code>&lt;select name="cat" multiple="multiple" class="main" onChange="javascript:get_list(this.value);"&gt;
    &lt;option value=""&gt;--Select Category--&lt;/option&gt;
    &lt;?php
     ////////////////display category//////////////////
     $cat_details=mysql_query("SELECT category_id,category 
                                 FROM category_tb 
                             ORDER BY category");

     while($cat_data=@mysql_fetch_array($cat_details)){?&gt;                        
        &lt;option value="&lt;?=$cat_data['category_id'];?&gt;"&lt;?
        if($_REQUEST['cat']==$cat_data['category_id']){?&gt; selected="selected"&lt;?php } ?&gt;&gt;&lt;?=$cat_data['category'];?&gt;&lt;/option&gt;
    &lt;? } ?&gt;                        
&lt;/select&gt;
</code></pre>

<p>How can I pass all the selected value from multi-select to ajax?</p>
