This is my drop down using select and the id is beh_type
<select class="form-control" id="beh_type">
<option value="0">Auto</option>
<option value="1">Man</option>
</select>
and this is my multiple select list and the id is mult_type
<select multiple="multiple" class="form-control" id="mult_type">
<option value="0">Auto</option>
<option value="1">Man</option>
</select>
and this is my JavaScript code for single click using if condition and the code to be executed for mult_type not for beh_type
if($("select").attr("id") == "mult_type"){
$("select").mousedown(function(e){
e.preventDefault();
var select = this;
var scroll = select.scrollTop;
e.target.selected = !e.target.selected;
setTimeout(function(){select.scrollTop = scroll;}, 0);
$(select).focus();}
}).mousemove(function(e){e.preventDefault()});