.attr(“disabled”, “disabled”) issue

后端 未结 7 1398
再見小時候
再見小時候 2020-12-28 17:05

I have this function toggles the disabled attribute form a input field:

$(\'.someElement\').click(function(){     
  if (someCondition) {
     console.log($         


        
7条回答
  •  醉话见心
    2020-12-28 17:27

    Thank you all for your contribution! I found the problem:

    ITS A FIREBUG BUG !!!

    My code works. I have asked the PHP Dev to change the input types hidden in to input type text. The disabled feature works. But the firebug console does not update this status!

    you can test out this firebug bug by your self here http://jsbin.com/uneti3/3#. Thx to aSeptik for the example page.

    update: 2. June 2012: Firebug in FF11 still has this bug.

提交回复
热议问题