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", }) 

http://jsfiddle.net/wasikuss/gx93rwnk/


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -