JQuery notes / unsorted

From Helpful
Jump to: navigation, search
Related to web development, hosting, and such: (See also the webdev category)
jQuery: Introduction, some basics, examples · plugin notes · unsorted

Server stuff:

Dynamic server stuff:


Unsorted

Setting/creating contents

Simple extensions

When you want to see what a selector selects:

// Quick and dirty jquery functions to put an outline() or border() on a selection.
// can take their respective css styles; defaults to '#777 solid 1px' for both.
if (window.jQuery) {
 jQuery.fn.outline = function(args){           
   if (!args) args='#777 solid 1px'; 
   $(this).css('outline',args);                             
   return this;
 };
 
 jQuery.fn.border = function(args){
   if (!args) args='#777 solid 1px'; 
   $(this).css('border',args);
   return this;                      
 };
 //If you're even lazier with typing:                              
 jQuery.fn.o = jQuery.fn.outline;
 jQuery.fn.b =  jQuery.fn.border;                 
}
 
//Now you can do things like $('.fork').outline();



http://net.tutsplus.com/tutorials/javascript-ajax/20-helpful-jquery-methods-you-should-be-using/

http://www.artzstudio.com/2009/04/jquery-performance-rules/

See also

References:

Also: