Profile
Achievement
digitalclubb's Recent Snippets
- All /
« Prev 1 Next »
Via @lmgalmeida
Usage:
data-src="image.jpg" src="loader.gif"
$("img").unveil();
0
867
posted 12 years ago by digitalclubb
Simple jQuery accordion function for jQuery version 1.7.1 and above.
3
984
posted 12 years ago by digitalclubb
A clean and simple jQuery function for creating a tabbed element. This one allows multiple tabbed elements on 1 page (which has been the downfall of so many others)
1
833
posted 13 years ago by digitalclubb
Simply run the function when the document has loaded and specify setDefault to true.
0
753
posted 14 years ago by digitalclubb
The most annoying thing I find working with the strict doctype is the inability to send users off to a site in a new window.
To combat this, I always use the above snippet.
Some people just stick the attribute on the anchors when the page loads...
0
830
posted 14 years ago by digitalclubb
This extends jQuery.is() so now you can use if ($(element).is())
0
707
posted 14 years ago by digitalclubb
Great way to check if a node exists before running a piece of code.
2
882
posted 14 years ago by digitalclubb