Html + js +jquery
How to implement Jquery Multiselect Drop-Down for filters ?
<script>
$(function(){
$("#id").multiselect({
header: 'ABC',
noneSelectedText: 'ABC',
selectedText: 'abc',
}).select2;
});
</script>
Html + js +jquery
How to implement Jquery Multiselect Drop-Down for filters ?
<script>
$(function(){
$("#id").multiselect({
header: 'ABC',
noneSelectedText: 'ABC',
selectedText: 'abc',
}).select2;
});
</script>
Few jquery dropdown check list plugins available on net -
I don't think that you can use check box input in your drop down selection directly in your HTML. But if you want to make the selection multiple then you can do it by below code.
<div class="form-group col-lg-2">
<select class="form-control" name="ms" multiple>
<option>Type</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
Thanks
This isn't something jQuery does on its own ... There's an old project you could look at, based on jQuery 1.7, but this isn't maintained. However, it's open-source, so you could look at the code to see if there are ideas you can borrow to work with a newer version of jQuery.
Here is a link to a good library, http://code.google.com/p/dropdown-check-list/
With some nice test cases, http://dropdown-check-list.googlecode.com/svn/trunk/doc/ddcl-tests.html.
In addition, here are some examples, http://dropdown-check-list.googlecode.com/svn/trunk/doc/dropdownchecklist.html.