<div class="control-group"> <label class="control-label">逾期等级:</label>
<div class="controls">
<select id="lateFeeDays" multiple class="chzn-select" name="lateFeeDays" style="width:140px" class="input-xlarge focused">
<option value="M1">M1</option> <option value="M2">M1-M2</option>
<option value="M3">M2-M3</option> <option value="M4">M3以上</option>
</select>
</div>
</div>
var lateFeeDays="${lateFeeDays}";
if(lateFeeDays.contains("M1")){
$("#lateFeeDays option[value=‘M1‘]").attr("selected",true);
}
if(lateFeeDays.contains("M2")){
$("#lateFeeDays option[value=‘M2‘]").attr("selected",true);
}
if(lateFeeDays.contains("M3")){
$("#lateFeeDays option[value=‘M3‘]").attr("selected",true);
}
if(lateFeeDays.contains("M4")){
$("#lateFeeDays option[value=‘M4‘]").attr("selected",true);
}
$("#lateFeeDays").chosen();