HTML input fields does not get focus when clicked

后端 未结 27 2104
予麋鹿
予麋鹿 2020-12-08 06:11

I have a problem and I can\'t figure out what exactly is causing this behavior. I cannot access my input fields and textareas on my HTML form.

Unfortun

27条回答
  •  天涯浪人
    2020-12-08 06:26

    I had this problem too. I used the disableSelection() method of jQuery UI on a parent DIV which contained my input fields. In Chrome the input fields were not affected but in Firefox the inputs (and textareas as well) did not get focused on clicking. The strange thing here was, that the click event on these inputs worked.

    The solution was to remove the disableSelection() method for the parent DIV.

提交回复
热议问题