Jquery Touch Events for Mobiles

<script>
 
jQuery("#example").on( "touchstart",function() {
     jQuery("div").css("display","none");							
});
 
jQuery("#example").on( "touchend",function() {
     jQuery("div").css("display","none");							
});
 
jQuery("#example").on( "touchcancel",function() {
     jQuery("div").css("display","none");							
});
 
jQuery("#example").on( "touchmove",function() {
     jQuery("div").css("display","none");							
});
 
jQuery("#example").on("tap",function(){
      jQuery("div").css("display","none"); 
 });
 
 jQuery("#example").on( "vclick",function() {
     jQuery("div").css("display","none"); 
 });
 
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *