Get the jQuery Version
Many JavaScript frameworks provide a version
property on their main object, providing a quick bit of important information about the framework. The main jQuery object doesn't provide this property, however, so developers need to do a bit more work to get that version information. Here's how to get the jQuery version number for a given jQuery script!
The jQuery JavaScript
The jQuery version lives within jQuery.fn
:
var v = jQuery.fn.jquery;
/*
You may also use:
var v = jQuery().jquery; // "1.4.2"
*/
The jquery
property of the jQuery.fn
object provides the version number as a string. Not as easy as .version
access, but provides the jQuery version nonetheless!
With CSS border-radius, I showed you how CSS can bridge the gap between design and development by adding rounded corners to elements. CSS gradients are another step in that direction. Now that CSS gradients are supported in Internet Explorer 8+, Firefox, Safari, and Chrome...
I was inspired when I first saw Addy Osmani's original ShineTime blog post. The hover sheen effect is simple but awesome. When I started my blog redesign, I really wanted to use a sheen effect with my logo. Using two HTML elements and...
One of the famous MooTools plugins is Harald Kirschner's AutoCompleter plugin. AutoCompleter takes a term input by the user and searches for matches -- an obviously help to the user. Here's how to make the most of Harald's great plugin.
The XHTML
All we...
Everybody and their aerobics instructor wants to be able to edit their own website these days. And why wouldn't they? I mean, they have a $500 budget, no HTML/CSS experience, and extraordinary expectations. Enough ranting though. Having a website that allows for...