Now I am not a star really with Javascript, but i seem to encounter the all known problem with mobile devices and the onclick function. Onclick requires a mouse action where off
Had the same issue, after setting z-index to 100 it worked. Seems like in my case there was a z-index issue.