Ok. Thanks for the info. Finally I had moved to Ajax method which is working with the code provided above by you
$html .= '<select multiple id="tdp-'.$c.'" class="tdp-class-'.$c.'" name="taxo['.$c.'][term][]">';
Only a small problem. Selecting a single or multiple fields result in search and works.
But ‘All Salary’ option is resulting in no results since I have added []
Here All salary refers to the option by which it selects all items.
Here is my code:
==================================
add_filter('uwpqsf_addtax_field_multiselect','multiselect_front','',11);
function multiselect_front($type,$exc,$hide,$taxname,$taxlabel,$taxall,$opt,$c,$defaultclass,$formid,$divclass){
$eid = explode(",", $exc);
$args = array('hide_empty'=>$hide,'exclude'=>$eid );
$taxoargs = apply_filters('uwpqsf_taxonomy_arg',$args,$taxname,$formid);
$terms = get_terms($taxname,$taxoargs);
$count = count($terms);
$html = '<div class="'.$defaultclass.' '.$divclass.'" id="tax-select-'.$c.'"><span class="taxolabel-'.$c.'">'.$taxlabel.'</span>';
$html .= '<input type="hidden" name="taxo['.$c.'][name]" value="'.$taxname.'">';
$html .= '<input type="hidden" name="taxo['.$c.'][opt]" value="'.$opt.'">';
$html .= '<select size="5" multiple id="tdp-'.$c.'-'.$i.'" class="tdp-class-'.$c.'" name="taxo['.$c.'][term][]">';
if(!empty($taxall)){
$html .= '<option selected value="uwpqsftaxoall">'.$taxall.'</option>';
}
if ( $count > 0 ){
foreach ( $terms as $term ) {
$selected = (isset($_GET['taxo'][$c]['term']) && $_GET['taxo'][$c]['term'] == $term->slug) ? 'selected="selected"' : '';
$html .= '<option value="'.$term->slug.'" '.$selected.'>'.$term->name.'</option>';}
}
$html .= '</select>';
$html .= '</div>';
return $html;
}
============================================
Thanks