非Jquery select多选 复选
XML/HTML Code
- <section>
- <div class="container mt-5">
- <hr>
- <form>
- <div class=form-group>
- <label for=select-language>正常select</label>
- <select class=form-control>
- <option value=php>PHP</option>
- <option value=javascript>Javascript</option>
- <option value=python>Python</option>
- <option value=java>Java</option>
- </select>
- </div>
- <div class=form-group>
- <label for=select-language>单选 Select</label>
- <select id=select-language>
- <option value=php>PHP</option>
- <option value=javascript>Javascript</option>
- <option value=python>Python</option>
- <option value=java>Java</option>
- </select>
- </div>
- <div class=form-group>
- <label for=select-language>多选 Select</label>
- <select id=select-multiple-language multiplemultiple=multiple>
- <option value=php>PHP</option>
- <option value=javascript>Javascript</option>
- <option value=python>Python</option>
- <option value=kotlin disableddisabled=disabled>Kotlin</option>
- <option value=java>Java</option>
- </select>
- </div>
- </form>
- </div>
- </section>
原文地址:http://www.freejs.net/article_biaodan_820.html