I am using this multiselect plugin (https://github.com/davidstutz/bootstrap-multiselect) I have set selectable optgroups on.
It is clear how to get selected options under optgroups.
selected Options gives your all selected options, but it does not contain selected optgoups
How to get selected optgoups in array. Thanks in advnace for your help!
You can select all the
optgroupelements that contain a:checkedoption.Example: