javascript - how to add check box in "select 2 dropdown" -
hello new page designing please me current query
<javascript> <body> <select id="companyname" class="form-control__" style="width:100%;height: 34px;" onchange="" tabindex="4"> <option value="">select </option> </select> </body> <script> $(document).ready(function(){ $('#companyname').select2('close'); }); </script>
try use plugin https://github.com/wasikuss/select2-multi-checkboxes
example:
$('#companyname').select2multicheckboxes({ placeholder: "choose multiple elements", })
Comments
Post a Comment