Remove disabled attribute onClick of disabled form field

后端 未结 10 1480
眼角桃花
眼角桃花 2020-12-03 11:28

I have a form field that starts out disabled and has an onClick to enable it. The onClick doesn\'t fire (at least in FF) nor does a simple alert(1);.

The hacky vers

10条回答
  •  难免孤独
    2020-12-03 12:01

    Using jQuery, I attach an event handler to the parents of my input controls.

    
    

    All of my input controls have the class "input" and they exist in their own table cells. If you at least wrapped your input tags in a div, then this should work without a table as well.

提交回复
热议问题