0

Because on iPad I've tried to add :hover :active and :focus over some "a href" and there was not showing any effect, I've decided to add a preloader over page when the page is loading after your click. Can anyone explain to me how to add this preloader onclick;

$("#preloader").hide();
document.getElementById("preloader").style.display = 'none';
  • maybe this [question](http://stackoverflow.com/questions/1964839/jquery-please-wait-loading-animation) can help you – Leo Silence Jun 11 '15 at 09:17

1 Answers1

0

try this

$(function(){
     $("#yourID").on("click",function(){
         $("#preloader").show();
     });
});

and for hiding use either $("#preloader").hide(); or

document.getElementById("preloader").style.display = 'none';

you don't have to use both.

Optimus
  • 2,200
  • 8
  • 37
  • 71