How to select multiple values ​​in the Data Tables dropdown list

I am new to jquery and Data tables. I have a dropdown when the user selects one value that will search for data and draw a table. This lookup and drawing of a table are the default properties of data tables. Now I want the user to be able to select multiple values.

And based on multiple choice, the search should happen. I searched a lot on this but didn't get anything. Any help would be appreciated!

In this image, I have selected one value from the dropdown and based on two records being populated in the table. now i want to select multiple values ​​here, in this dropdown, maybe a checkbox will be checked, after which the search should work on both selected records. enter image description here

0


source to share


1 answer


I did it. I am posting this answer because it might help someone.

jQuery MultiSelect is a jQuery plugin that turns a MultiSelect list into a nice dropdown list with checkboxes. This plugin is easy to use and very useful in web form. You need to use two libraries jquery.multiselect.css and jquery.multiselect.js. if you search for multi select examples using J query you will find many links and this will work great with your data tables. For the lookup parameter, you need to pass multiple values ​​to the function that builds your data tables. See below for details.



http://www.codexworld.com/multi-select-dropdown-list-with-checkbox-jquery/

0


source







All Articles