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:


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'; 
   return this;
 jQuery.fn.border = function(args){
   if (!args) args='#777 solid 1px'; 
   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();



See also