I then have an html element with a data attribute like this:
How can I convert data-extraoptions into an object and then merge into my config variable?
I've tried just using a comma delimited string in data-extraoptions and using the split function, then using $.extend(true, config, [extraOptions]);, but doing so removes whatever is in 'Option1' above. It also doesn't allow me to group the items together as needed.
I've also tried parseJSON() with no luck.
Any ideas?