1 if($("#taskDepartment_1").prop("checked")){ 2 $('#taskImplement_1').validatebox({ required: true }); 3 }
1 <tr> 2 <th id="task1" >救助保护</th> 3 <td ><input id = 'taskDepartment_1' 4 name='taskDepartment_1' type="checkbox" value="1" 5 <c:if test="${task.taskDepartment_1.contains('1')}">checked="checked"</c:if> disabled="disabled">民政部门</input> 6 </td> 7 <td><textarea 8 id="taskDescribe_1" name="taskDescribe_1" 9 class="easyui-validatebox inputdf90" style="height: 80px;" 10 data-options="required: false, validType: 'length[0,500]'" 11 maxlength="500" readonly="readonly">${task.taskDescribe_1}</textarea></td> 12 <td><textarea 13 id="taskImplement_1" name="taskImplement_1" 14 class="easyui-validatebox inputdf90" style="height: 80px;" 15 data-options="required: false, validType: 'length[0,500]'" 16 maxlength="500">${task.taskImplement_1}</textarea></td> 17 </tr>