jQuery select插件,包括一个可以点击后select才能启用
jQuery select插件,包括一个可以点击后select才能启用
XML/HTML Code
- <div class="select-container" style="left: 100px;">
- <p>Regular select</p>
- <select id="the_select" name="the_select">
- <option>Option 1</option>
- <option selected="selected">Option 2 (pre-selected)</option>
- <option>Option 3</option>
- <option>Option 4</option>
- </select>
- </div>
- <div class="select-container" style="left: 400px;">
- <p>Disabled regular select (<a href="#" id="toggle-disabled">Toggle State</a>)</p>
- <select disabled="disabled">
- <option>Option 1</option>
- <option>Option 2</option>
- <option>Option 3</option>
- <option>Option 4</option>
- </select>
- </div>
- <div class="select-container" style="left: 700px;">
- <p>Select with optgroups</p>
- <select>
- <optgroup>
- <option>Option 1.1</option>
- </optgroup>
- <optgroup>
- <option>Option 2.1</option>
- <option>Option 2.2</option>
- </optgroup>
- <optgroup>
- <option>Option 3.1</option>
- <option>Option 3.2</option>
- <option>Option 3.3</option>
- </optgroup>
- </select>
- </div>
- <div class="select-container" style="left: 1000px;">
- <p>Select with optgroups and optgroup labels</p>
- <select>
- <optgroup label="Group 1">
- <option>Option 1.1</option>
- </optgroup>
- <optgroup label="Group 2">
- <option>Option 2.1</option>
- <option>Option 2.2</option>
- </optgroup>
- <optgroup label="Group 3">
- <option>Option 3.1</option>
- <option>Option 3.2</option>
- <option>Option 3.3</option>
- </optgroup>
- </select>
- </div>
相关推荐
专注前端开发 2020-10-21
苏康申 2020-11-13
vitasfly 2020-11-12
oraclemch 2020-11-06
liuyang000 2020-09-25
FellowYourHeart 2020-10-05
赵继业 2020-08-17
whyname 2020-08-16
Seandba 2020-08-16
dbasunny 2020-08-16
拼命工作好好玩 2020-08-15
langyue 2020-08-15
写程序的赵童鞋 2020-08-03
Accpcjg 2020-08-02
tydldd 2020-07-30
好记忆也需烂 2020-07-28
jianghero 2020-07-28