Search code examples
javascripthtmltwitter-bootstrapbootstrap-multiselect

Bootstrap Multiselect setting the options fields


I am attempting to have the search bar on my bootstrap-multiselect object. The problem is I do not know how to use javascript options.

I am using this tutorial: www.htmluse.com/bootstrap-multiselect

I have the multiselect visually appearing correctly, but I don't know how to set the options. I've attempted this...

$('.multiselect').enableFiltering = true;

Solution

  • Following the documentation:

    <script type="text/javascript">
        $(document).ready(function() {
            $('.multiselect').multiselect({
                enableFiltering: true
            });
        });
    </script>