SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
jQuery 1.2 Cheat Sheet v1.0
                                                                                                                                                              gscottolson.com/weblog/
CORE                                             SELECTORS                                      MANIPULATION                            EVENTS                                             AJAX
$(...) The jQuery Function:                      Basics:                                        Changing Contents:                      Page Load:                                         Ajax Requests:
  jQuery( expr, context ) 
            jQuery     #id 
                               Element     html( ) 
                    String     ready( fn ) 
                        jQuery       jQuery.ajax( options ) 
                 XHR
  jQuery( html ) 
                     jQuery     element 
                    Array<Element>     html( val ) 
               jQuery    Event Handling:
                                    load( url, data, cb ) 
                jQuery
  jQuery( elements ) 
                 jQuery     .class 
                     Array<Element>     text( ) 
                    String     bind( type, data, fn ) 
             jQuery       jQuery.get( url, data, cb ) 
            XHR
  jQuery( cb ) 
                       jQuery     *
                           Array<Element>     text( val )
                jQuery      one( type, data, fn ) 
              jQuery       jQuery.getJSON( url, data, cb ) 
        XHR
jQuery Object Accessors:                          selector1, selectorN 
       Array<Element>   Inserting Inside:                         trigger( type, data ) 
              jQuery       jQuery.getScript( url, cb ) 
            XHR
                                                 Hierarchy:                                       append( content ) 
         jQuery      triggerHandler( type, data ) 
       jQuery       jQuery.post( url, data, cb, type ) 
     XHR
  each( cb ) 
                         jQuery
                                                  ancestor descendant 
        Array<Element>     appendTo( content ) 
       jQuery      unbind( type, data ) 
               jQuery      Ajax Events:
  size( ) 
                          Number
                                                  parent > child 
             Array<Element>     prepend( content ) 
        jQuery    Interaction Helpers:
                               ajaxComplete( cb ) 
                   jQuery
  length 
                           Number
                                                  prev + next 
                Array<Element>     prependTo( content ) 
      jQuery      hover( over, out ) 
                 jQuery       ajaxError( cb ) 
                      jQuery
  eq( position ) 
                     jQuery
                                                  prev ~ siblings 
            Array<Element>   Inserting Outside:                        toggle( fn, fn ) 
                   jQuery       ajaxSend( cb ) 
                       jQuery
  get( ) 
                    Array<Element>
                                                 Basic Filters:                                   after( content ) 
          jQuery    Event Helpers:                                      ajaxStart( cb ) 
                      jQuery
  get( index ) 
                     Element
                                                  :first 
                             Element     before( content ) 
         jQuery      blur( [fn] ) 
                       jQuery       ajaxStop( cb ) 
                       jQuery
  index( subject ) 
                 Number
                                                  :last 
                             Element     insertAfter( content ) 
    jQuery      change( [fn] ) 
                     jQuery       ajaxSuccess( cb ) 
                    jQuery
Plugins:                                          :not(selector) 
             Array<Element>     insertBefore( content ) 
   jQuery      click( [fn] ) 
                      jQuery      Misc:
  jQuery.fn.extend( object )
          jQuery     :even 
                      Array<Element>   Inserting Around:                         dblclick( [fn] ) 
                   jQuery       jQuery.ajaxSetup( options ) 
  jQuery.extend( object ) 
            jQuery     :odd 
                       Array<Element>     wrap( html ) 
              jQuery      error( [fn] ) 
                      jQuery       serialize( ) 
                         jQuery
Interoperability:                                 :eq(index) 
                        Element     wrap( elem ) 
              jQuery      focus( [fn] ) 
                      jQuery       serializeArray( ) 
                    jQuery
  jQuery.noConflict( ) 
                jQuery     :gt(index) 
                 Array<Element>     wrapAll( html ) 
           jQuery      keydown( [fn] ) 
                    jQuery
  jQuery.noConflict( extreme ) 
        jQuery     :lt(index) 
                 Array<Element>     wrapAll( elem ) 
           jQuery      keypress( [fn] ) 
                   jQuery      UTILITIES
                                                  :header 
                    Array<Element>     wrapInner( html ) 
         jQuery      keyup( [fn] ) 
                      jQuery        jQuery.browser 
                         Map
ATTRIBUTES                                        :animated 
                  Array<Element>     wrapInner( elem ) 
         jQuery      load( fn ) 
                         jQuery        jQuery.browser.version 
               String
Attr:                                            Content Filters:                               Replacing:                                mousedown( fn ) 
                    jQuery        jQuery.boxModel 
                    Boolean
 attr( name ) 
                       Object      :contains(text) 
            Array<Element>     replaceWith( content ) 
    jQuery      mousemove( fn ) 
                    jQuery      Array and Object operations:
 attr( properties ) 
                 jQuery      :empty 
                     Array<Element>     replaceAll( selector ) 
    jQuery      mouseout( fn ) 
                     jQuery        jQuery.each( object, cb ) 
           Object
 attr( key, value ) 
                 jQuery      :has(selector) 
             Array<Element>   Removing:                                 mouseover( fn ) 
                    jQuery        jQuery.extend( target, obj1, objN ) 
 Object
 attr( key, fn ) 
                    jQuery      :parent 
                    Array<Element>     empty( ) 
                  jQuery      mouseup( fn ) 
                      jQuery        jQuery.grep( arr, cb, invert ) 
       Array
 removeAttr( name ) 
                 jQuery     Visibility Filters:                              remove( expr ) 
            jQuery      resize( fn ) 
                       jQuery        jQuery.makeArray( obj ) 
              Array
Class:                                            :hidden 
                    Array<Element>   Copying:                                  scroll( fn ) 
                       jQuery        jQuery.map( arr, cb ) 
                Array
 addClass( class ) 
                  jQuery      :visible 
                   Array<Element>     clone( )
                   jQuery      select( [fn] ) 
                     jQuery        jQuery.inArray( value, arr ) 
       Number
 removeClass( class ) 
               jQuery     Attribute Filters:                               clone( true ) 
             jQuery      submit( [fn] ) 
                     jQuery        jQuery.unique( arr ) 
                 Array
 toggleClass( class ) 
               jQuery      [attribute] 
                Array<Element>                                             unload( fn ) 
                       jQuery      Test operations:
HTML:                                             [attribute=value] 
          Array<Element>   TRAVERSING                                                                                   jQuery.isFunction( obj ) 
           Boolean
 html( ) 
                             String     [attribute!=value] 
         Array<Element>   Filtering:                              EFFECTS                                            String operations:
 html( val ) 
                        jQuery      [attribute^=value] 
         Array<Element>     eq( index ) 
                jQuery   Basics:                                              jQuery.trim( str ) 
                   String
Text:                                             [attribute$=value] 
         Array<Element>     hasClass( class ) 
         Boolean     show( [speed, cb] ) 
                 jQuery
 text( ) 
                             String     [attribute*=value] 
         Array<Element>     filter( expr ) 
              jQuery     hide( [speed, cb] ) 
                 jQuery
 text( val ) 
                        jQuery      [selector1][selectorN] 
     Array<Element>     filter( fn ) 
                jQuery     toggle( ) 
                           jQuery
Value:                                           Child Filters:                                   is( expr ) 
                Boolean   Sliding:
 val( ) 
                        String, Array    :nth-child(idx/even/odd/eq)
 Array<Element>     map( cb ) 
                  jQuery     slideDown( speed, cb ) 
              jQuery    Key:
 val( val ) 
                         jQuery      :first-child 
                Array<Element>     not( expr ) 
                jQuery     slideUp( speed, cb ) 
                jQuery      cb = callback
 val( val ) 
                         jQuery      :last-child 
                Array<Element>     slice( start, end ) 
        jQuery     slideToggle( speed, cb ) 
            jQuery      dur = duration
                                                  :only-child 
                Array<Element>   Finding:                                Fading:                                             idx = index
                                                 Forms:                                           add( expr ) 
               jQuery      fadeIn( speed, cb ) 
                 jQuery      eq = equation
CSS                                               :input 
                     Array<Element>
CSS:                                                                                              children( expr ) 
          jQuery      fadeOut( speed, cb ) 
                jQuery      XHR = XmlHTTPRequest
                                                  :text 
                      Array<Element>     contents( ) 
               jQuery      fadeTo( speed, opacity, cb ) 
        jQuery      arr = array
 css( name ) 
                         String
                                                  :password 
                  Array<Element>     find( expr ) 
               jQuery    Custom:                                             [fn] = optional function
 css( properties ) 
                  jQuery
                                                  :radio 
                     Array<Element>     next( expr ) 
              jQuery      animate( params, dur, easing, cb ) 
  jQuery
 css( name, value ) 
                 jQuery
                                                  :checkbox 
                  Array<Element>     nextAll( expr ) 
           jQuery      animate( params, options ) 
          jQuery
Positioning:
                                                  :submit 
                    Array<Element>     parent( expr ) 
            jQuery      stop( ) 
                             jQuery
 offset( ) 
                 Object{top,left}
                                                  :image 
                     Array<Element>     parents( expr ) 
           jQuery      queue( ) 
                    Array<Function>
Height and Width:
                                                  :reset 
                     Array<Element>     prev( expr ) 
              jQuery      queue( cb ) 
                         jQuery
 height( ) 
                          Integer
                                                  :button 
                    Array<Element>     prevAll( expr ) 
           jQuery      queue( queue ) 
                      jQuery
 height( val ) 
                      jQuery
                                                  :file 
                       Array<Element>     siblings( expr ) 
          jQuery      dequeue( ) 
                          jQuery
 width( ) 
                           Integer
                                                  :hidden 
                    Array<Element>   Chaining:
 width( val ) 
                       jQuery
                                                 Form Filters:                                    andSelf( ) 
                jQuery
                                                  :enabled 
                   Array<Element>     end( ) 
                    jQuery
                                                  :disabled 
                  Array<Element>
                                                  :checked 
                   Array<Element>
                                                  :selected 
                  Array<Element>

Más contenido relacionado

La actualidad más candente

this is ruby test
this is ruby testthis is ruby test
this is ruby test51 lecture
 
Doc Parsers Api Cheatsheet 1 0
Doc Parsers Api Cheatsheet 1 0Doc Parsers Api Cheatsheet 1 0
Doc Parsers Api Cheatsheet 1 0Oleh Burkhay
 
Functionality Focused Code Organization
Functionality Focused Code OrganizationFunctionality Focused Code Organization
Functionality Focused Code OrganizationRebecca Murphey
 
Using Templates to Achieve Awesomer Architecture
Using Templates to Achieve Awesomer ArchitectureUsing Templates to Achieve Awesomer Architecture
Using Templates to Achieve Awesomer ArchitectureGarann Means
 
YUI3 Modules
YUI3 ModulesYUI3 Modules
YUI3 Modulesa_pipkin
 
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsBeyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsRebecca Murphey
 
Delivering a Responsive UI
Delivering a Responsive UIDelivering a Responsive UI
Delivering a Responsive UIRebecca Murphey
 
DeprecatedAPI로 알아보는 SwiftUI
DeprecatedAPI로 알아보는 SwiftUIDeprecatedAPI로 알아보는 SwiftUI
DeprecatedAPI로 알아보는 SwiftUIBongwon Lee
 

La actualidad más candente (13)

BVJS
BVJSBVJS
BVJS
 
this is ruby test
this is ruby testthis is ruby test
this is ruby test
 
jQuery
jQueryjQuery
jQuery
 
Doc Parsers Api Cheatsheet 1 0
Doc Parsers Api Cheatsheet 1 0Doc Parsers Api Cheatsheet 1 0
Doc Parsers Api Cheatsheet 1 0
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
JQuery
JQueryJQuery
JQuery
 
Functionality Focused Code Organization
Functionality Focused Code OrganizationFunctionality Focused Code Organization
Functionality Focused Code Organization
 
Using Templates to Achieve Awesomer Architecture
Using Templates to Achieve Awesomer ArchitectureUsing Templates to Achieve Awesomer Architecture
Using Templates to Achieve Awesomer Architecture
 
Spine JS
Spine JSSpine JS
Spine JS
 
YUI3 Modules
YUI3 ModulesYUI3 Modules
YUI3 Modules
 
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsBeyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS Apps
 
Delivering a Responsive UI
Delivering a Responsive UIDelivering a Responsive UI
Delivering a Responsive UI
 
DeprecatedAPI로 알아보는 SwiftUI
DeprecatedAPI로 알아보는 SwiftUIDeprecatedAPI로 알아보는 SwiftUI
DeprecatedAPI로 알아보는 SwiftUI
 

Destacado

Xưởng may đồng phục nghi thức đội chất lượng cao
Xưởng may đồng phục nghi thức đội chất lượng caoXưởng may đồng phục nghi thức đội chất lượng cao
Xưởng may đồng phục nghi thức đội chất lượng caotruonghoc2
 
57400200 56684390-tubulacao-1 (2)
57400200 56684390-tubulacao-1 (2)57400200 56684390-tubulacao-1 (2)
57400200 56684390-tubulacao-1 (2)Jupira Silva
 
CP-Resume.pdf
CP-Resume.pdfCP-Resume.pdf
CP-Resume.pdfnickohrn
 

Destacado (7)

Xưởng may đồng phục nghi thức đội chất lượng cao
Xưởng may đồng phục nghi thức đội chất lượng caoXưởng may đồng phục nghi thức đội chất lượng cao
Xưởng may đồng phục nghi thức đội chất lượng cao
 
57400200 56684390-tubulacao-1 (2)
57400200 56684390-tubulacao-1 (2)57400200 56684390-tubulacao-1 (2)
57400200 56684390-tubulacao-1 (2)
 
Pl 1944 2007
Pl 1944 2007Pl 1944 2007
Pl 1944 2007
 
CP-Resume.pdf
CP-Resume.pdfCP-Resume.pdf
CP-Resume.pdf
 
Rocio
RocioRocio
Rocio
 
Presentación1
Presentación1Presentación1
Presentación1
 
E learning uvazujete
E learning uvazujeteE learning uvazujete
E learning uvazujete
 

Similar a J query1.2.cheatsheet.v1.0

jQuery and Rails, Sitting in a Tree
jQuery and Rails, Sitting in a TreejQuery and Rails, Sitting in a Tree
jQuery and Rails, Sitting in a Treeadamlogic
 
presentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxpresentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxazz71
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Libraryrsnarayanan
 
JQuery New Evolution
JQuery New EvolutionJQuery New Evolution
JQuery New EvolutionAllan Huang
 
Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1ilesh raval
 
Jquery 1.3 cheatsheet_v1
Jquery 1.3 cheatsheet_v1Jquery 1.3 cheatsheet_v1
Jquery 1.3 cheatsheet_v1Sultan Khan
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperManoj Bhuva
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue AdventureAllegient
 
jQuery basics for Beginners
jQuery basics for BeginnersjQuery basics for Beginners
jQuery basics for BeginnersPooja Saxena
 
jQuery. Write less. Do More.
jQuery. Write less. Do More.jQuery. Write less. Do More.
jQuery. Write less. Do More.Dennis Loktionov
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginnersDivakar Gu
 
Ajax tutorial
Ajax tutorialAjax tutorial
Ajax tutorialKat Roque
 

Similar a J query1.2.cheatsheet.v1.0 (20)

Basics of j query
Basics of j queryBasics of j query
Basics of j query
 
JQuery Overview
JQuery OverviewJQuery Overview
JQuery Overview
 
jQuery and Rails, Sitting in a Tree
jQuery and Rails, Sitting in a TreejQuery and Rails, Sitting in a Tree
jQuery and Rails, Sitting in a Tree
 
jQuery
jQueryjQuery
jQuery
 
presentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxpresentation_jquery_ppt.pptx
presentation_jquery_ppt.pptx
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Library
 
JQuery New Evolution
JQuery New EvolutionJQuery New Evolution
JQuery New Evolution
 
Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1Jquery 13 cheatsheet_v1
Jquery 13 cheatsheet_v1
 
Jquery 1.3 cheatsheet_v1
Jquery 1.3 cheatsheet_v1Jquery 1.3 cheatsheet_v1
Jquery 1.3 cheatsheet_v1
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java Developer
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue Adventure
 
JQuery introduction
JQuery introductionJQuery introduction
JQuery introduction
 
JavaScript JQUERY AJAX
JavaScript JQUERY AJAXJavaScript JQUERY AJAX
JavaScript JQUERY AJAX
 
jQuery basics for Beginners
jQuery basics for BeginnersjQuery basics for Beginners
jQuery basics for Beginners
 
J query training
J query trainingJ query training
J query training
 
jQuery
jQueryjQuery
jQuery
 
jQuery Essentials
jQuery EssentialsjQuery Essentials
jQuery Essentials
 
jQuery. Write less. Do More.
jQuery. Write less. Do More.jQuery. Write less. Do More.
jQuery. Write less. Do More.
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
 
Ajax tutorial
Ajax tutorialAjax tutorial
Ajax tutorial
 

Más de Mariaa Maria

Más de Mariaa Maria (12)

Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v3
Css cheat-sheet-v3Css cheat-sheet-v3
Css cheat-sheet-v3
 
rytyeyyey
rytyeyyeyrytyeyyey
rytyeyyey
 
asdasdasdsadasdsadasd
asdasdasdsadasdsadasdasdasdasdsadasdsadasd
asdasdasdsadasdsadasd
 
Notas ado1
Notas ado1Notas ado1
Notas ado1
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 
Css cheat-sheet-v2
Css cheat-sheet-v2Css cheat-sheet-v2
Css cheat-sheet-v2
 

Último

Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfTechSoup
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17Celine George
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxiammrhaywood
 
Ultra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxUltra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxDr. Asif Anas
 
What is the Future of QuickBooks DeskTop?
What is the Future of QuickBooks DeskTop?What is the Future of QuickBooks DeskTop?
What is the Future of QuickBooks DeskTop?TechSoup
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17Celine George
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17Celine George
 
The Singapore Teaching Practice document
The Singapore Teaching Practice documentThe Singapore Teaching Practice document
The Singapore Teaching Practice documentXsasf Sfdfasd
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfYu Kanazawa / Osaka University
 
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRADUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRATanmoy Mishra
 
CapTechU Doctoral Presentation -March 2024 slides.pptx
CapTechU Doctoral Presentation -March 2024 slides.pptxCapTechU Doctoral Presentation -March 2024 slides.pptx
CapTechU Doctoral Presentation -March 2024 slides.pptxCapitolTechU
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxraviapr7
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational PhilosophyShuvankar Madhu
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICESayali Powar
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptxraviapr7
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptxmary850239
 
UKCGE Parental Leave Discussion March 2024
UKCGE Parental Leave Discussion March 2024UKCGE Parental Leave Discussion March 2024
UKCGE Parental Leave Discussion March 2024UKCGE
 
Presentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphPresentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphNetziValdelomar1
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxKatherine Villaluna
 

Último (20)

Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
 
Ultra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptxUltra structure and life cycle of Plasmodium.pptx
Ultra structure and life cycle of Plasmodium.pptx
 
What is the Future of QuickBooks DeskTop?
What is the Future of QuickBooks DeskTop?What is the Future of QuickBooks DeskTop?
What is the Future of QuickBooks DeskTop?
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17
 
The Singapore Teaching Practice document
The Singapore Teaching Practice documentThe Singapore Teaching Practice document
The Singapore Teaching Practice document
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
 
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRADUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
 
CapTechU Doctoral Presentation -March 2024 slides.pptx
CapTechU Doctoral Presentation -March 2024 slides.pptxCapTechU Doctoral Presentation -March 2024 slides.pptx
CapTechU Doctoral Presentation -March 2024 slides.pptx
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptx
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational Philosophy
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICE
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptx
 
UKCGE Parental Leave Discussion March 2024
UKCGE Parental Leave Discussion March 2024UKCGE Parental Leave Discussion March 2024
UKCGE Parental Leave Discussion March 2024
 
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdfPersonal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
 
Presentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphPresentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a Paragraph
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptx
 

J query1.2.cheatsheet.v1.0

  • 1. jQuery 1.2 Cheat Sheet v1.0 gscottolson.com/weblog/ CORE SELECTORS MANIPULATION EVENTS AJAX $(...) The jQuery Function: Basics: Changing Contents: Page Load: Ajax Requests: jQuery( expr, context ) jQuery #id Element html( ) String ready( fn ) jQuery jQuery.ajax( options ) XHR jQuery( html ) jQuery element Array<Element> html( val ) jQuery Event Handling: load( url, data, cb ) jQuery jQuery( elements ) jQuery .class Array<Element> text( ) String bind( type, data, fn ) jQuery jQuery.get( url, data, cb ) XHR jQuery( cb ) jQuery * Array<Element> text( val ) jQuery one( type, data, fn ) jQuery jQuery.getJSON( url, data, cb ) XHR jQuery Object Accessors: selector1, selectorN Array<Element> Inserting Inside: trigger( type, data ) jQuery jQuery.getScript( url, cb ) XHR Hierarchy: append( content ) jQuery triggerHandler( type, data ) jQuery jQuery.post( url, data, cb, type ) XHR each( cb ) jQuery ancestor descendant Array<Element> appendTo( content ) jQuery unbind( type, data ) jQuery Ajax Events: size( ) Number parent > child Array<Element> prepend( content ) jQuery Interaction Helpers: ajaxComplete( cb ) jQuery length Number prev + next Array<Element> prependTo( content ) jQuery hover( over, out ) jQuery ajaxError( cb ) jQuery eq( position ) jQuery prev ~ siblings Array<Element> Inserting Outside: toggle( fn, fn ) jQuery ajaxSend( cb ) jQuery get( ) Array<Element> Basic Filters: after( content ) jQuery Event Helpers: ajaxStart( cb ) jQuery get( index ) Element :first Element before( content ) jQuery blur( [fn] ) jQuery ajaxStop( cb ) jQuery index( subject ) Number :last Element insertAfter( content ) jQuery change( [fn] ) jQuery ajaxSuccess( cb ) jQuery Plugins: :not(selector) Array<Element> insertBefore( content ) jQuery click( [fn] ) jQuery Misc: jQuery.fn.extend( object ) jQuery :even Array<Element> Inserting Around: dblclick( [fn] ) jQuery jQuery.ajaxSetup( options ) jQuery.extend( object ) jQuery :odd Array<Element> wrap( html ) jQuery error( [fn] ) jQuery serialize( ) jQuery Interoperability: :eq(index) Element wrap( elem ) jQuery focus( [fn] ) jQuery serializeArray( ) jQuery jQuery.noConflict( ) jQuery :gt(index) Array<Element> wrapAll( html ) jQuery keydown( [fn] ) jQuery jQuery.noConflict( extreme ) jQuery :lt(index) Array<Element> wrapAll( elem ) jQuery keypress( [fn] ) jQuery UTILITIES :header Array<Element> wrapInner( html ) jQuery keyup( [fn] ) jQuery jQuery.browser Map ATTRIBUTES :animated Array<Element> wrapInner( elem ) jQuery load( fn ) jQuery jQuery.browser.version String Attr: Content Filters: Replacing: mousedown( fn ) jQuery jQuery.boxModel Boolean attr( name ) Object :contains(text) Array<Element> replaceWith( content ) jQuery mousemove( fn ) jQuery Array and Object operations: attr( properties ) jQuery :empty Array<Element> replaceAll( selector ) jQuery mouseout( fn ) jQuery jQuery.each( object, cb ) Object attr( key, value ) jQuery :has(selector) Array<Element> Removing: mouseover( fn ) jQuery jQuery.extend( target, obj1, objN ) Object attr( key, fn ) jQuery :parent Array<Element> empty( ) jQuery mouseup( fn ) jQuery jQuery.grep( arr, cb, invert ) Array removeAttr( name ) jQuery Visibility Filters: remove( expr ) jQuery resize( fn ) jQuery jQuery.makeArray( obj ) Array Class: :hidden Array<Element> Copying: scroll( fn ) jQuery jQuery.map( arr, cb ) Array addClass( class ) jQuery :visible Array<Element> clone( ) jQuery select( [fn] ) jQuery jQuery.inArray( value, arr ) Number removeClass( class ) jQuery Attribute Filters: clone( true ) jQuery submit( [fn] ) jQuery jQuery.unique( arr ) Array toggleClass( class ) jQuery [attribute] Array<Element> unload( fn ) jQuery Test operations: HTML: [attribute=value] Array<Element> TRAVERSING jQuery.isFunction( obj ) Boolean html( ) String [attribute!=value] Array<Element> Filtering: EFFECTS String operations: html( val ) jQuery [attribute^=value] Array<Element> eq( index ) jQuery Basics: jQuery.trim( str ) String Text: [attribute$=value] Array<Element> hasClass( class ) Boolean show( [speed, cb] ) jQuery text( ) String [attribute*=value] Array<Element> filter( expr ) jQuery hide( [speed, cb] ) jQuery text( val ) jQuery [selector1][selectorN] Array<Element> filter( fn ) jQuery toggle( ) jQuery Value: Child Filters: is( expr ) Boolean Sliding: val( ) String, Array :nth-child(idx/even/odd/eq) Array<Element> map( cb ) jQuery slideDown( speed, cb ) jQuery Key: val( val ) jQuery :first-child Array<Element> not( expr ) jQuery slideUp( speed, cb ) jQuery cb = callback val( val ) jQuery :last-child Array<Element> slice( start, end ) jQuery slideToggle( speed, cb ) jQuery dur = duration :only-child Array<Element> Finding: Fading: idx = index Forms: add( expr ) jQuery fadeIn( speed, cb ) jQuery eq = equation CSS :input Array<Element> CSS: children( expr ) jQuery fadeOut( speed, cb ) jQuery XHR = XmlHTTPRequest :text Array<Element> contents( ) jQuery fadeTo( speed, opacity, cb ) jQuery arr = array css( name ) String :password Array<Element> find( expr ) jQuery Custom: [fn] = optional function css( properties ) jQuery :radio Array<Element> next( expr ) jQuery animate( params, dur, easing, cb ) jQuery css( name, value ) jQuery :checkbox Array<Element> nextAll( expr ) jQuery animate( params, options ) jQuery Positioning: :submit Array<Element> parent( expr ) jQuery stop( ) jQuery offset( ) Object{top,left} :image Array<Element> parents( expr ) jQuery queue( ) Array<Function> Height and Width: :reset Array<Element> prev( expr ) jQuery queue( cb ) jQuery height( ) Integer :button Array<Element> prevAll( expr ) jQuery queue( queue ) jQuery height( val ) jQuery :file Array<Element> siblings( expr ) jQuery dequeue( ) jQuery width( ) Integer :hidden Array<Element> Chaining: width( val ) jQuery Form Filters: andSelf( ) jQuery :enabled Array<Element> end( ) jQuery :disabled Array<Element> :checked Array<Element> :selected Array<Element>