select2 を使用してリモート JSON データを取得し、複数レベルで表示しようとしています。 http://ivaynberg.github.io/select2/index.html
これが私の応答です
{
"Company": [
{
"name": "athenahealth Inc"
},
{
"name": "Localiza Rent a Car"
},
{
"name": "M and B Switchgears"
}
],
"Functional": [
{
"name": "arranger"
},
{
"name": "ambassadors"
}
],
"Persons": [
{
"name": "Moustapha al"
},
{
"name": "Saleh al"
}
]
}
結果を複数値形式で表示したい - http://ivaynberg.github.io/select2/index.html#multi
これまでのところ、サーバー側からデータをフェッチすることはできますが、複数選択オプションを有効にする方法がわかりません。