差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| study:javascript:jquery:select2 [2010/10/02 12:07] – created banana | study:javascript:jquery:select2 [2012/05/14 03:46] (現在) – banana | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== set selected index for dynamic drop-down list ====== | ||
| - | ===== Demo ===== | ||
| - | ===== Test Page ===== | ||
| - | < | ||
| - | < | ||
| - | <script type=" | ||
| - | <script type=" | ||
| - | <!-- | ||
| - | function createOption(){ | ||
| - | var options = newOptions = { | ||
| - | ' | ||
| - | ' | ||
| - | ' | ||
| - | ' | ||
| - | }; | ||
| - | $("# | ||
| - | $.each(options, | ||
| - | $("# | ||
| - | }); | ||
| - | $("# | ||
| - | } | ||
| - | $(function(){ | ||
| - | createOption(); | ||
| - | }); | ||
| - | //--> | ||
| - | </ | ||
| - | </ | ||
| - | < | ||
| - | <select id=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||