Open LucasRoquilly opened 1 year ago
Hello,
Thanks to all those contributing.
It seems to me an example in the docs is not working. It is the "Simulate single selections using checkboxes" example.
I changed this code (which is in the docs)
<script type="text/javascript"> $(document).ready(function() { $('#example-simulate-single').multiselect({ on: { change: function(option, checked) { var values = []; $('#example-simulate-single option').each(function() { if ($(this).val() !== option.val()) { values.push($(this).val()); } }); $('#example-simulate-single').multiselect('deselect', values); } } }); }); </script>
to this code below to make it work
<script type="text/javascript"> $(document).ready(function() { $('#example-simulate-single').multiselect({ onChange: function(option, checked) { var values = []; $('#example-simulate-single option').each(function() { if ($(this).val() !== option.val()) { values.push($(this).val()); } }); $('#example-simulate-single').multiselect('deselect', values); } }); }); </script>
I suggest updating the docs if this is confirmed
Hello,
Thanks to all those contributing.
It seems to me an example in the docs is not working. It is the "Simulate single selections using checkboxes" example.
I changed this code (which is in the docs)
to this code below to make it work
I suggest updating the docs if this is confirmed