jQuery Minute™

…a jQuery Minute™ later and you're done!

Plugin Namespace

without comments

This recently came up again on the jquery-en Google Groups list, here’s a way that you can namespace your plugin.

http://www.nabble.com/Re%3A-passing-this-p13540912s27240.html

Written by jdsharp

December 12th, 2007 at 12:49 pm

addClass() removeClass()

without comments

If you have to add or remove multiple classes with jQuery, the most efficient way is to separate the classes with a space and make one call.

Such as:

1
$('body').addClass('abc def');

As opposed to:

1
$('body').addClass('abc').addClass('def');

Written by jdsharp

December 11th, 2007 at 12:22 pm

jQuery Documentation – Windows CHM Reference Manual

without comments

Picked up from the jquery-en Google Groups, here is a Windows CHM Help file version of the jQuery documentation.

http://charupload.wordpress.com/2007/12/07/jquery-documentation-chm/

Written by jdsharp

December 11th, 2007 at 12:07 pm

Calculate Browser’s Scrollbar Width

without comments

Here’s a solution for calculating the brower’s scrollbar width. Tested in Internet Explorer 6 & 7, Firefox 1.5+ and Safari.

Calculate Brower’s Scrollbar Width

Written by jdsharp

December 10th, 2007 at 2:17 pm

Posted in Code-bits

Welcome!

without comments

Greetings, I’m Jonathan Sharp and first coined the term “jQuery Minute” in this discussion thread on the Google Groups mailing list. jQuery Minute refers to how easy jQuery makes JavaScript for your web development tasks.

This site is aimed at providing quick tid-bits of code and “hidden” features of the jQuery library as well as highlight some neat plugin’s and uses of jQuery.

Written by jdsharp

December 10th, 2007 at 2:00 pm

Posted in jQuery Minute