I have a dropdown, and in another process add optgroups/options to that dropdown, and that part works fine.
But I may need to add similar optgroups, with more data, and I want to check for the existence of that optgroup, and if it exists, don't add it, but just add options to the existing optgroup.
I have been searching around, and can't seem to find any help on selecting an optgroup.
My existing dropdown has the id of "user_search_select" and possible optgroup values could be like "dept_name" or "loc_name" or "last_name"
So after I add more data, I then may want to sort the options inside each optgroup, is that possible and how so?
Thank You!