Jquery Cheatsheet 1 4
Jquery Cheatsheet 1 4
Jquery Cheatsheet 1 4
Conventional signs
CSS Inserting Outside } arr jQuery.makeArray( obj )
CSS $ .after( content ), .after( fn() ) 1.4∗ arr jQuery.map( array, fn( element, index ) )
[obj] — array of objects
1.4+ — new in 1.4
str .css( name ) $ .before( content ),
.before( fn() ) 1.4∗
Effects num jQuery.inArray( val, array )
arr jQuery.merge( first, second )
$ .css( name, val ), .css( map ), Basics
1.4∗ — changed in 1.4 .css( name, fn(index, val) ) 1.4∗ $ .insertAfter( target ) fn jQuery.noop 1.4+
$ .show( [ duration [, fn] ] )
$ .insertBefore( target ) fn jQuery.proxy( fn, scope ), jQuery.proxy( scope, name ) 1.4+
Positioning $ .hide( [ duration [, fn] ] )
Data types obj .offset( ) Inserting Around $ .toggle( [showOrHide] ) arr jQuery.unique( array )
* — anything $ .offset( coord ), $ .unwrap( ) 1.4+ $ .toggle( duration [, fn] ) str jQuery.trim( str )
$ — jQuery object .offset( fn( index, coord ) ) 1.4+ $ .wrap( wrappingElement ), Data functions
.wrap( fn ) 1.4∗ Sliding
arr — array $ .offsetParent( ) $ .clearQueue( [name] ) 1.4+
$ .wrapAll(wrappingElement ), $ .slideDown( duration [, fn] )
bool — boolean obj .position( ) $ .dequeue( [name] ), jQuery.dequeue( [name] )
.wrapAll( fn ) 1.4∗ $ .slideUp( duration [, fn] )
int .scrollTop( ) obj jQuery.data( element, key ), jQuery.data( ) 1.4+
el — DOM element $ .wrapInner( wrappingElement ), $ .slideToggle( [duration] [, fn] )
$ .scrollTop( val ) obj .data( ), .data( key )
fn — function .wrapInner( fn ) 1.4∗ Fading
int .scrollLeft( ) $ .data( key, val ), .data( obj ) 1.4∗
int — integer $ .scrollLeft( val ) Replacing $ .fadeIn( duration [, fn] )
$ .removeData( [name] )
obj — object $ .replaceWith( content ), $ .fadeOut( duration [, fn] )
Height and Width [fn] .queue( [name] ) jQuery.queue( [name] )
str — string .replaceWith( fn ) 1.4∗ $ .fadeTo( duration, opacity [, fn] )
int .height( ) $ .queue( [name,] fn( next ) ), jQuery.queue( [name,] fn( ) )
XHR — XMLHttpRequest $ .replaceAll( selector ) Custom
$ .height( val ) $ .queue( [name,] queue ), jQuery.queue( [name,] queue )
int .width( ) Removing $ .animate( params [, duration] [, easing] [, fn] )
Test operations
$ .width( val ) $ .detach( [selector] ) 1.4+ $ .animate( params, options )
http://futurecolors.ru/jquery/ int .innerHeight( ) $ .empty( ) $ .stop( [clearQueue] [, jumpToEnd] )
bool
bool
jQuery.isArray( obj )
jQuery.isEmptyObject( obj ) 1.4+
ver. 21-01-2010 $ .remove( [selector] ) $ .delay( duration [, queueName] ) 1.4+
int .innerWidth( ) bool jQuery.isFunction( obj )
int .outerHeight( [margin] ) Copying Settings bool jQuery.isPlainObject( obj ) 1.4+
int .outerWidth( [margin] ) $ .clone( [withDataAndEvents] ) bool jQuery.fx.off