jquery_chained icon indicating copy to clipboard operation
jquery_chained copied to clipboard

Support `<optgroup>`

Open kAlvaro opened this issue 10 years ago • 3 comments

Currently, selects are expected to be flat. There's no JSON syntax or code to handle <optgroup> tags.

The label attribute is mandatory so that should simplify the syntax.

In case it helps, here's a quick idea (probably absurd because I'm actually not very familiar with the plug-in):

["": "None"],
[
    {
        Asia": [
            ["cn","China"],
            ["jp","Japan"]
        ],
    }
],
[
    {
        "Europe": [
            ["fr", "France"]
            ["es", "Spain"],
        ],
    }
],
["zz": "Other"],
["--": "Don't know"]

kAlvaro avatar Sep 12 '14 12:09 kAlvaro

+1!!!

Aeon avatar Mar 03 '15 20:03 Aeon

+1 !

federicodv avatar Apr 18 '16 03:04 federicodv

I remind you you can add a Thumbs up icon to any entry in issue tracker, there's no need to flood the ticket with "+1" comments.

kAlvaro avatar Apr 18 '16 07:04 kAlvaro