2013-05-05 4 views

答えて

8

は(質問編集に回答コミュニティのwikiの答えに変換Question with no answers, but issue solved in the comments (or extended in chat)を参照してください。。)

をOPが書いた:

いくつかの掘削後、私は

$("#e20").select2({ 
     tags:["red", "green", "blue"], 
     tokenSeparators: [",", " "] 
}); 
で私の質問を解決しました

重要な点は、tokenSeparators属性です。

document of Select2が有用です。

+0

select2でkeydownイベントを作成するにはどうすればよいですか?スペースバーのイベントをトリガーしたい – tkr

関連する問題