I am developing a mobile site for the iPhone using jQuery. I have a hidden div (class .tile-content) that contains some content. Clicking the link using onclick="showContent(this)"fadeIn calls as follows:
function showContent(obj)
{
alert($(obj).html());
$(obj).next('.tile-content').fadeIn();
return false;
}
Everything works fine until I touch "email us" on which there is a mailto link: on it, launching the iPhone, built-in email overlay functions. Then I hit and I returned to the site. Now, if I click the link, my .tile-contentdiv will not appear. However, I get a warning on the iPhone. After I click once, nothing works (which, I think, means there was a js error?). It's very hard to debug a physical iPhone. Any ideas?
Update: I turned on the Safari Mobile debugging console thanks to a tip from @John Boker below. No errors were found, but I still have the same problem.
source
share