ipad - Phonegap jQuery event.target Not working -


i have phonegap-ios application ipad user logout popup shown in image below.

logout popup

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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -