0

Using an iPad, IOS5, is there anyway to make a button more clickable in the browser? I have a website using html 5 and I noticed that I sometimes have to click a button multiple times for the jquery to read the click event. Here is the html for a button I use:

<button class="button purple">SEARCH</button>

Jquery:

$('.button.purple').click(function() {

//Code goes here

});
John
  • 9,840
  • 26
  • 91
  • 137
  • 1
    I think that's a hardware issue. I've noticed that on multiple platforms. Is this happening *too* often? If it is only taking one or two clicks, it shouldn't make much of a difference. – Sunjay Varma Oct 17 '11 at 02:30

1 Answers1

0

If there are multiple click events on that page, you might want to try event.preventDefault();

$('.button.purple').click(function(e) {

    //Code goes here

    e.preventDefault();
});
Samuel Liew
  • 76,741
  • 107
  • 159
  • 260