craigsworks.com - Support Forum

Full Version: Need to set delay only for one icon in the browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI Everyone,

I am new to Jquery,I need help in setting delay only for one icon of 5 icon on my page.
I tried
var elems = $('li');
hide: {
target: elems, delay: 5000
},

Didnt work,Can any one help me out with this.

Thanks in advance.
So, you want to use the exact same config, except one of the links has a delay? Perhaps...
JS Code
$('.selector').each(function(i) {
	$(this).qtip({
		hide: {
			elems: $('li'),
			delay: i === 5 ? 4000 : 0
		}
	});
});
Reference URL's