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>
原文地址:http://www.freejs.net/article_biaodan_177.html