Jquery .show() not working in firefox

后端 未结 4 2060
南旧
南旧 2021-02-14 01:30

I have a problem with the jquery show function in firefox.

Situation: I have loaded a iframe with an aspx page in a popup (fancybox). In that aspx page I have a button

4条回答
  •  不知归路
    2021-02-14 02:25

    It may be just a side-effect of a js error. It's always worth hitting F12 and seeing if there are any js errors in the console. I had a similar issue where I couldn't figure out why .show() wasn't working on an input that had a style of 'display:none' in Firefox and it turned out I had a badly formed selector which was missing a closing ] and threw an error you don't see, until you open Firebug. Chrome was more tolerant showed the button while Firefox caught the bad selector.

提交回复
热议问题