What are you trying to accomplish with the
.onclick()
inline event handlers that try to click on hidden buttons? Can you do
this in a more straightforward way?
It's not conventional to use inline event handles in jQuery
Mobile projects. It's better to just bind or delegate in some JS code.
I presume that fancybox has some API you can use to control it.
Use the API, don't create fake clicks on hidden buttons!
I suspect the issue is that in some browsers you cannot simulate
a click on a hidden element.