select 多选框 复选框
XML/HTML Code
- <div class="container">
- <h2>jQuery MultiSelect Basic Example</h2>
- <select name="country" multiple class="form-control">
- <option value="">Country...</option>
- <option value="AF">Afghanistan</option>
- <option value="AL">Albania</option>
- <option value="DZ">Algeria</option>
- <option value="AS">American Samoa</option>
- <option value="AD">Andorra</option>
- <option value="AG">Angola</option>
- </select>
- <h2>optgroup Example</h2>
- <select name="basicOptgroup[]" multiple="multiple">
- <optgroup label="Programming Languages">
- <option value="C++ / C#">C++ / C#</option>
- <option value="Java">Java</option>
- <option value="Objective-C">Objective-C</option>
- </optgroup>
- <optgroup label="Client-side scripting Languages">
- <option value="JavaScript">JavaScript</option>
- </optgroup>
- <script type="text/javascript" src="../../js/jquery-1.9.1.min.js"></script>
- <script src="jquery.multiselect.js"></script>
- <script>
- $('select[multiple]').multiselect({
- columns: 4,
- placeholder: 'Select options'
- });
- </script>
- </select>
- </div>
原文地址:http://www.freejs.net/article_biaodan_480.html