Jquery On Second Click Doesn't Work - Mobile
Before you say that is duplicate from other topics, I've seen that topics, such as: jQuery: trigger click() doesn't work? jQuery .on Click second time not working Jquery Onclick no
Solution 1:
Try jQuery on function for the same,
$( "element" ).on( "click", function() {
alert("clicked");
});
Solution 2:
Call Function using Onclick event for Button Try Something like
index.php
/* in body tag */
<input type="button" id="page-add" onclick='addFunction();' value="Add" data-role="none"/>
/* after body tag */functionaddFunction() {
window.location.href = 'add.php';
}
add.php
/* in body tag */
<div class="ui-btn-left"><ahref="index.php"><imgsrc="images/logo.png"/></a></div>
Post a Comment for "Jquery On Second Click Doesn't Work - Mobile"