Onclick fire after only three clicks

I have a phonegap application in html5, with kendo ui. My button works fine in the browser, but on the Android device I need to click three times to trigger a warning. This is my code:

<!DOCTYPE html> <html> <head> <title></title> <script src="js/jquery-1.8.2.js"></script> <script src="js/kendo.all.min.js"></script> <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" /> <link href="styles/kendo.common.min.css" rel="stylesheet" /> <link href="styles/kendo.default.min.css" rel="stylesheet" /> </head> <body> <div data-role="view" data-title="Login/Sign-up" id="view-transitions-login" data-transition="overlay:left" style="background-color: white;"> <input type="button" id="logButton" value="login" style="width: 100px; height: 60px" /> </div> <script> $(document).ready(function() { $("#logButton").click(function() { alert(33); }); }); </script> <script> var app = new kendo.mobile.Application(document.body); </script> </body> </html> 

Thanks in advance.

+4
source share
1 answer

I have found the answer. I used the latest version of kendo.all.min and this created a problem. I changed the file and everything works as it should.

+2
source

All Articles