jQuery first click disable

First click disable in all devise.

jQuery(".subnav a").one("click", false);

First click disable in Mobile devise.

jQuery( document ).ready( function( $ ) {
var isMobile = /iPad|iPhone|Android|iPod/i.test(navigator.userAgent);
	//alert (isMobile);
if (isMobile) {
	jQuery(".home-product a, .cart-product a").click(function(e){
		jQuery(".home-product a").addClass('nav_returnlink');
		//don't actually need to do anything, just want the handler so that css fires in iOS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s