Remove disabled attribute onClick of disabled form field

后端 未结 10 1454
眼角桃花
眼角桃花 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:26

    I recently had a very similar problem and solved it by placing the input in a div and moving the onClick to the div.

提交回复
热议问题