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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -