<body> <p>Hello, your application is ready!</p> Ready Second <input type="button" id="btnTest" value="Click" /> <p id="demo"></p> <!-- Cordova reference, this is added to your app when it's built. --> <script src="cordova.js"></script> <script src="scripts/platformOverrides.js"></script> <script src="scripts/index.js"></script> <script src="scripts/jquery-2.1.4.min.js"></script> </body>
function onDeviceReady() { // Handle the Cordova pause and resume events document.addEventListener( 'pause', onPause.bind( this ), false ); document.addEventListener( 'resume', onResume.bind( this ), false ); // TODO: Cordova has been loaded. Perform any initialization that requires Cordova here. $("#btnTest").click(function () { $("#demo").text("Hello World"); }); };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)