I am using jquery multiselect in my project,when user clicks on checkall then how can i stop this function to check last option in jquery multiselect?
like if i have 4 option in my jquery multiselect and if user clicks on check all i want intial three option to be checked but last option is unchecked.
any help would be much appreciated
Here you go updated solution here for plugin as well normal multiple checkbox with demo!
Solution for multiselect Checkbox special condition to uncheck last checkbox on checkall
Working MultiSelect jsfiddle for specific case regarding @Gautam’s multiselect plugin: http://jsfiddle.net/fG6PT/82/
HTML:
JQuery
Solution below is for normal Chckbox
Working example here: http://jsfiddle.net/Ev7FX/5/
http://jsfiddle.net/Ev7FX/4/
Html
JQuery Code
This will help, cheers!