This is a migrated thread and some comments may be shown as answers.

Button click fire twice on ios safari

0 Answers 213 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Juan Carlos
Top achievements
Rank 1
Juan Carlos asked on 13 Nov 2012, 10:20 AM
It works fine, but when you click after event it fires again, on ios safari.
On pc chrome works fine. 
Is any bug or just me? 
<a id="idMatch" data-role="button" data-click="cancelMatch">Cancel</a>

 function cancelMatch(e){
    e.preventDefault();
    mid = this.element.prop("id");
if (confirm("Are you sure to delete " ))  {
$.post('urldelete.php',
{matchid:mid},
function(data){
if (data['success']) {
alert(data['message']);
} else {
alert(data['message']);
}
}, "json");
 } 
    }

No answers yet. Maybe you can help?

Tags
Button (Mobile)
Asked by
Juan Carlos
Top achievements
Rank 1
Share this question
or