启用和禁用jQuery中的文本字段
这个问题在这里已经有了答案:
尝试这个:
jQuery(document).ready(function(){
     jQuery("#cca label.control input").on('change', function (e) {
    alert('I am pretty sure the text box changed');
    e.preventDefault();
  });
});
  如果这不起作用,那么请在输入jQuery("#cca label.control input").length时回应控制台返回的内容jQuery("#cca label.control input").length 
上一篇: enable and disable textfield in jquery
下一篇: How to disable an element on the page with jQuery or Javascript
