Select控件可选可输入
生活随笔
收集整理的這篇文章主要介紹了
Select控件可选可输入
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
jQuery的插件
jquery-editable-select,可以輸入可以選擇
引入CSS和JS
頁面代碼
<select path="customerId" style="width: 190px;"><c:forEach items="${clientList}" var="c"><option value="${c.id}" ${c.id eq m.customerId?'selected="selected"':''}>${c.customerName}</option></c:forEach> <select>JS代碼
// 可選可輸 $('#customerId').editableSelect({effects: 'slide' });總結(jié)
以上是生活随笔為你收集整理的Select控件可选可输入的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Select2控件的多选
- 下一篇: jQuery的触发事件