enable and disable textfield in jquery

This question already has an answer here:

  • Disable/enable an input with jQuery? 11 answers
  • How to make text box enable and disable in jquery [duplicate] 2 answers

  • Try this:

    jQuery(document).ready(function(){
         jQuery("#cca label.control input").on('change', function (e) {
        alert('I am pretty sure the text box changed');
        e.preventDefault();
      });
    });
    

    If that doesn't work then please respond with what your console returns when you type jQuery("#cca label.control input").length

    链接地址: http://www.djcxy.com/p/23008.html

    上一篇: 完全禁用输入栏

    下一篇: 启用和禁用jQuery中的文本字段