ipad - Phonegap jQuery event.target Not working -
i have phonegap-ios application ipad user logout popup shown in image below.

i want popup hide when user clicks on body. code works on native browser not working on ipad simulator.
$("body").clickortouch(function (evt) { if (!(evt.target.id == "launchusername") { $('#launchlogout').hide(); } });
in iphone, ipad devices click event work in anchor tag not span or div tags, try work.
$("body").on('click touchend', function (evt) { if (!(evt.target.id == "launchusername") { $('#launchlogout').hide(); } });
Comments
Post a Comment