jquery-nice-select
jquery-nice-select copied to clipboard
Add support for optgroups
Based on the work done on https://github.com/hernansartorio/jquery-nice-select/pull/18 On the above pull request I believe an assumption is made that optgroup contains data-i attribute as index for each optgroup and hence was failing when it was not found
This solution checks whether data-i exists on each optgroup and creates one if it does not exist