j$(\'#payment\').change(function() { var payment = j$(this).children(\'option:selected\').val(); if (payment == \'Y\') { j$(\'#paymentNo\').removeAttr("disabled"); } else if (payment == \'N\') { j$(\'#paymentNo\').val(""); j$(\'#paymentNo\').attr(\'disabled\', \'disabled\'); } else { j$(\'#paymentNo\').removeAttr("disabled"); } }); j$(\'#isSend\').change(function() { var isSend = j$(this).children(\'option:selected\').val(); if (isSend == \'true\') { j$(\'#orderSendStartDate\').removeAttr("disabled"); j$(\'#orderSendEndDate\').removeAttr("disabled"); } else if (isSend == \'false\') { j$(\'#orderSendDate input\').val(""); j$(\'#orderSendDate input\').attr(\'disabled\', \'disabled\'); } else { j$(\'#orderSendStartDate\').removeAttr("disabled"); j$(\'#orderSendEndDate\').removeAttr("disabled"); } });
dateTimePicker无法直接进行清空或者只读设置,只能到其上一层的td,对td内所有的input进行清空和只读