Fight With Me!!!

导航

Jquery select chosen 插件注意点

<select style="width:200px;" name="carId" data-placeholder="选择车辆牌照"
    tabindex="3" id="car" class="chzn-select">
    <option value=""></option>
    #if($companyList)
    #foreach($company in $companyList)
    <optgroup label="$company.name">
        #if($cars)
        #foreach($car in $cars)
        #if($company.id==$car.company.id)
        <option value="$car.id">$car.carSerialNumber</option>
        #end
        #end
        #end
    </optgroup>
    #end
    #end
</select>

如果无法正常显示,更换select 的ID值,Id是这个插件进行识别select的标志

posted on 2018-04-17 15:54  nickTimer  阅读(247)  评论(0编辑  收藏  举报