SlideShare a Scribd company logo
1 of 65
http://www.youtube.com/kamleshutube JQUERY EXAMPLE
SELECTORS / 1. BASIC Selects the combined results of all the specified selectors. Multiple Selector (“selector1, selector2, selectorN”) Selects a single element with the given id attribute. ID Selector (“#id”) Selects all elements with the given tag name Element Selector (“element”) Matches all elements with the given name. Class Selector (“.class”) Selects all elements. All Selector(“*”)
http:// www.youtube.com/watch?v =jWSodFG2XMg
SELECTORS / 2. HIERARCHY Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector. Next Siblings Selector (“prev ~ siblings”) Selects all next elements matching "next" that are immediately preceded by a sibling "prev". Next Adjacent Selector (“prev + next”) Selects all elements that are descendants of a given ancestor. Descendant Selector (“ancestor descendant”) Selects all direct child elements specified by "child" of elements specified by "parent". Child Selector (“parent > child”)
http:// www.youtube.com/watch?v =ATN8KoTONts
SELECTORS / 3. BASIC FILTER Selects odd elements, zero-indexed. See also even. :odd Selector Selects all elements that do not match the given selector. :not() Selector Select all elements at an index less than index within the matched set. :lt() Selector Selects the last matched element. :last Selector Selects all elements that are headers, like h1, h2, h3 and so on. :header Selector Select all elements at an index greater than index within the matched set. :gt() Selector Selects the first matched element. :first Selector Selects even elements, zero-indexed :even Selector Select the element at index n within the matched set. :eq() Selector
http:// www.youtube.com/watch?v =pUXxG1oCgkE
SELECTORS / 4. CONTENT FILTER Select all elements that are the parent of another element, including text nodes. :parent Selector Selects elements which contain at least one element that matches the specified selector. :has() Selector Select all elements that contain the specified text. :contains() Selector
http:// www.youtube.com/watch?v =1xu0clYY7-Y
SELECTORS / 5. ATTRIBUTE Matches elements that match all of the specified attribute filters. [attribute=value][attribute2=value2] Selects elements that have the specified attribute, with any value. [attribute] Selects elements that have the specified attribute with a value beginning exactly with a given string. [attribute^=value] Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value. [attribute!=value] Selects all elements that are matched specified value [attribute=value] Selects elements that have the specified attribute with a value ending exactly with a given string. [attribute$=value] Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. [attribute~=value] Selects elements that have the specified attribute with a value containing the a given substring. [attribute*=value] Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-). [attribute|=value]
http:// www.youtube.com/watch?v =tdujPn8HNr4
SELECTORS / 6. CHILD FILTER Selects all elements that are the only child of their parent. :only-child Selector Selects all elements that are the nth-child of their parent. :nth-child Selector Selects all elements that are the last child of their parent. :last-child Selector Selects all elements that are the first child of their parent. :first-child Selector
http:// www.youtube.com/watch?v =11tKyyhBBzY
SELECTORS / 7. FORM (contd.)  Selects all elements of type image. :image Selector Selects all elements of type file. :file Selector Selects all elements that are enabled. :enabled Selector Selects all elements that are disabled. :disabled Selector Matches all elements that are checked. :checked Selector Selects all elements of type checkbox. :checkbox Selector Selects all button elements and elements of type button. :button Selector
SELECTORS / 7. FORM Selects all elements of type text. :text Selector Selects all elements of type submit. :submit Selector Selects all elements that are selected. selected Selector Selects all elements of type reset. :reset Selector Selects all elements of type radio. :radio Selector Selects all elements of type password. :password Selector Selects all input, textarea, select and button elements. :input Selector
http:// www.youtube.com/watch?v =9snkUllPv9A
EVENTS / MOUSE EVENTS (contd.)   Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. .mouseenter( handler(eventObject) ) Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. .mousedown( handler(eventObject) ) Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. .hover( handler(eventObject) ) Bind an event handler to the "focusout" JavaScript event. .focusout( handler(eventObject) ) Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. .dblclick( handler(eventObject) ) Bind an event handler to the "click" JavaScript event, or trigger that event on an element. .click( handler(eventObject) )
EVENTS / MOUSE EVENTS Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. .mouseup( handler(eventObject) ) Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. .mouseover( handler(eventObject) ) Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. .mouseout( handler(eventObject) ) Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. .mousemove( handler(eventObject) ) Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. .mouseleave( handler(eventObject) )
http:// www.youtube.com/watch?v = HDMIUaoiiMk
EVENTS - FORM EVENTS Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. .focus( handler(eventObject) ) Bind an event handler to the "submit" JavaScript  event, or trigger that event on an element. .submit( handler(eventObject) ) Bind an event handler to the "select" JavaScript event, or trigger that event on an element. .select( handler(eventObject) ) Bind an event handler to the "change“ JavaScript event, or trigger that event on an element. .change( handler(eventObject) ) Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. .blur( handler(eventObject) )
http:// www.youtube.com/watch?v =Ltb0TUO8qsw
EVENTS - EVENT OBJECT Returns whether event.preventDefault() was ever called on this event object. .isDefaultPrevented() If this method is called, the default action of the event will not be triggered. .preventDefault() The DOM element that initiated the event. .target Describes the nature of the event. .type For key or button events, this attribute indicates the specific button or key that was pressed .which The mouse position relative to the top edge of the document. .pageY The mouse position relative to the left edge of the document .pageX
http:// www.youtube.com/watch?v =4PvYg4D2R1w
ATTRIBUTES - CLASS Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. .toggleClass( class, switch ) Determine whether any of the matched elements are assigned the given class. .hasClass( class ) Remove a single class, multiple classes, or all classes from each element in the set of matched elements. .removeClass( class ) Adds the specified class(es) to each of the set of matched elements. .addClass( class )
http:// www.youtube.com/watch?v =CPJpIpm7qCs
CSS - POSITIONING Set the current vertical position of the scroll bar for each of the set of matched elements. .scrollTop( value ) Get the current vertical position of the scroll bar for the first element in the set of matched elements. .scrollTop() Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. .position() Set the current coordinates of every element in the set of matched elements, relative to the document. .offset( coordinates ) Get the current coordinates of the first element in the set of matched elements, relative to the document. .offset() Set the current horizontal position of the scroll bar for each of the set of matched elements. .scrollLeft( value ) Get the current horizontal position of the scroll bar for the first element in the set of matched elements.  .scrollLeft()
http:// www.youtube.com/watch?v =zWX0ZzYrS_4
TRAVERSING -TREE TRAVERSAL (cont.) Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. .nextAll( [ selector ] ) Get the immediately following sibling of each element in the set of matched elements,  optionally filtered by a selector. .next( [ selector ] ) Get the descendants of each element in the current set of matched elements, filtered by a selector. .find( selector ) Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree. .closest( selector ) Get the children of each element in the set of matched elements, optionally filtered by a selector .children( [ selector ] )
TRAVERSING -TREE TRAVERSAL (cont.) Get the immediately preceding sibling of each element in the set of matched elements,  optionally filtered by a selector. .prev( [ selector ] ) Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. .parents( [ selector ] ) Get the parent of each element in the current set of matched elements, optionally filtered by a selector. .parent( [ selector ] ) Get all following siblings of each element up to but not including the element matched by the selector. .nextUntil( [ selector ] )
TRAVERSING -TREE TRAVERSAL  Get the siblings of each element in the set of matched elements, optionally filtered by a selector. .siblings( [ selector ] ) Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. .prevUntil( [ selector ] ) Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. .prevAll( [ selector ] )
http:// www.youtube.com/watch?v =1M4hThjV1vs http:// www.youtube.com/watch?v =_z74QVjOOiA
TRAVERSING - FILTERING Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. .map( callback(index, domEl) ) Reduce the set of matched elements to a subset specified by a range of indices. .slice( start, [ end ] ) Remove elements from the set of matched elements. .not() Check the current matched set of elements against a selector and return true if at least one of these elements matches the selector .is( selector ) Reduce the set of matched elements to those that match the selector or pass the function's test. .filter( selector ) Reduce the set of matched elements to the one at the specified index. .eq( index )
http:// www.youtube.com/watch?v =z_9IzPfxkrw
TRAVERSING - MISCELLANEOUS End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. .end() Get the children of each element in the set of matched elements, including text nodes. .contents() Add the previous set of elements on the stack to the current set. .andSelf() Add elements to the set of matched elements .add( selectors, [ context ] )
http:// www.youtube.com/watch?v =rU1SNaVs2ic
ATTRIBUTES - ATTR Remove an attribute from each element in the set of matched elements. .removeAttr() Set one or more attributes for the set of matched elements.  .attr( attributeName, value ) Get the value of an attribute for the first element in the set of matched elements. .attr( attributeName )
http:// www.youtube.com/watch?v = UvkCRCXHVzI
ATTRIBUTES - HTML Set the HTML contents of each element in the set of matched elements. .html( htmlString ) Get the HTML contents of the first element in the set of matched elements. .html()
http:// www.youtube.com/watch?v =JqzA9T3OfNM
ATTRIBUTES - TEXT Set the content of each element in the set of matched elements to the specified text. .text( textString ) Get the combined text contents of each Element in the set of matched elements, including their descendants. .text()
http:// www.youtube.com/watch?v = NiQGohUxKiA
ATTRIBUTES - VALUE Set the value of each element in the set of matched elements. .val( value ) Get the current value of the first element in the set of matched elements. .val()
http:// www.youtube.com/watch?v =o_K6q3QxJ7Y
CSS - CSS Set one or more CSS properties for the set of matched elements. .css( propertyName, value) Get the value of a style property for the first element in the set of matched  elements. css( propertyName )
http:// www.youtube.com/watch?v =ROewNE8mc_A
CSS - HEIGHT & WIDTH (cont.) Get the current computed width for the first element in the set of matched elements, including padding and border. .outerWidth() Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. .outerHeight() Get the current computed width for the first element in the set of matched elements, including padding but not border. .innerWidth() Get the current computed height for the first. element in the set of matched elements,  including padding but not border .innerHeight() Get the current computed height for the first .height() Set the CSS height of every matched element. element in the set of matched elements. .height( value )
CSS - HEIGHT & WIDTH Get the current computed width for the first element in the set of matched element .width() Set the CSS width of each element in the set of matched elements. .width( value )
http:// www.youtube.com/watch?v = faxfelPFFjc
MANIPULATION - INSIDE Insert content, specified by the parameter, to the end of each element in the set of matched elements. .prependTo( target ) Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. .prepend( content ) Insert every element in the set of matched elements to the end of the target. .appendTo( target ) Insert content, specified by the parameter, to the end of each element in the set of matched elements. .append( content )
http:// www.youtube.com/watch?v =egkrz9baf9I
MANIPULATION - OUTSIDE Insert every element in the set of matched elements after the target. .insertAfter( target ) Insert every element in the set of matched elements before the target. .insertBefore( target ) Insert content, specified by the parameter, before each element in the set of matched elements. .before( content ) Insert content, specified by the parameter, after each element in the set of matched elements. .after( content )
http:// www.youtube.com/watch?v = cSBmIJJJ_XA
MANIPULATION - AROUND Wrap an HTML structure around the content of each element in the set of matched elements. .wrapInner( wrappingElement ) Wrap an HTML structure around all elements in the set of matched elements. .wrapAll( wrappingElement ) Wrap an HTML structure around each element in the set of matched elements. .wrap( wrappingElement )
http:// www.youtube.com/watch?v = cSBmIJJJ_XA
MANIPULATION - REPLACING A selector expression indicating which element(s) to replace. .replaceAll() Replace each element in the set of matched elements with the provided new content. .replaceWith( newContent )
http:// www.youtube.com/watch?v =WA6G1eVF7Po
EVENTS - HANDLER ATTACHMENT  Remove a previously-attached event handler from the elements. .unbind( eventType, handler (eventObject) ) Attach a handler to an event for the elements. The handler is executed at most once per element. .one( eventType, [ eventData ], handler (eventObject) ) Attach a handler to the event for all elements which match the current selector, now or in the future. .live( eventType, eventData, handler ) Remove all event handlers previously attached using .live() from the elements. .die() Attach a handler to an event for the elements. .bind( eventType, [ eventData ], handler (eventObject) )
http:// www.youtube.com/watch?v =krpWZ7kIXt8 http:// www.youtube.com/watch?v =Axa7kKbC4Ec http:// www.youtube.com/watch?v =Axa7kKbC4Ec
EFFECTS - BASIC .hide( duration, [ callback ] ) Hide the matched elements. .show( duration, [ callback ] ) Display the matched elements.
http:// www.youtube.com/watch?v =674_VLph2vU
EFFECTS - SLIDING .slideDown( [ duration ], [ callback ] ) Display the matched elements with a sliding motion. .slideToggle( [ duration ], [ callback ] ) Display or hide the matched elements with a sliding motion. .slideUp( [ duration ], [ callback ] ) Hide the matched elements with a sliding motion.
http:// www.youtube.com/watch?v =2UQrqp4HKjw
EFFECTS - FADING .fadeIn( [ duration ], [ callback ] ) Display the matched elements by fading them to opaque. .fadeOut( [ duration ], [ callback ] ) Hide the matched elements by fading them to transparent. .fadeTo( duration, opacity, [ callback ] ) Adjust the opacity of the matched elements.
http:// www.youtube.com/watch?v =g2c44rYWfmI
Thank You

More Related Content

What's hot

Java eventhandling
Java eventhandlingJava eventhandling
Java eventhandlingArati Gadgil
 
Event Handling in Java
Event Handling in JavaEvent Handling in Java
Event Handling in JavaAyesha Kanwal
 
Advance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingAdvance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingPayal Dungarwal
 
Chapter 11.5
Chapter 11.5Chapter 11.5
Chapter 11.5sotlsoc
 
Graphical User Interface (GUI) - 2
Graphical User Interface (GUI) - 2Graphical User Interface (GUI) - 2
Graphical User Interface (GUI) - 2PRN USM
 
Event handling63
Event handling63Event handling63
Event handling63myrajendra
 
tL20 event handling
tL20 event handlingtL20 event handling
tL20 event handlingteach4uin
 
Web Design & Development - Session 6
Web Design & Development - Session 6Web Design & Development - Session 6
Web Design & Development - Session 6Shahrzad Peyman
 
Java Event Handling
Java Event HandlingJava Event Handling
Java Event HandlingShraddha
 
Event handling
Event handlingEvent handling
Event handlingswapnac12
 
JAVA GUI PART III
JAVA GUI PART IIIJAVA GUI PART III
JAVA GUI PART IIIOXUS 20
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programmingSynapseindiappsdevelopment
 
Ajp notes-chapter-03
Ajp notes-chapter-03Ajp notes-chapter-03
Ajp notes-chapter-03Ankit Dubey
 
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...Edureka!
 
C# Delegates and Event Handling
C# Delegates and Event HandlingC# Delegates and Event Handling
C# Delegates and Event HandlingJussi Pohjolainen
 

What's hot (19)

Swing
SwingSwing
Swing
 
Java eventhandling
Java eventhandlingJava eventhandling
Java eventhandling
 
Event Handling in Java
Event Handling in JavaEvent Handling in Java
Event Handling in Java
 
Advance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingAdvance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handling
 
Chapter 11.5
Chapter 11.5Chapter 11.5
Chapter 11.5
 
Graphical User Interface (GUI) - 2
Graphical User Interface (GUI) - 2Graphical User Interface (GUI) - 2
Graphical User Interface (GUI) - 2
 
Jp notes
Jp notesJp notes
Jp notes
 
Event handling63
Event handling63Event handling63
Event handling63
 
tL20 event handling
tL20 event handlingtL20 event handling
tL20 event handling
 
Event handling in Java(part 1)
Event handling in Java(part 1)Event handling in Java(part 1)
Event handling in Java(part 1)
 
Web Design & Development - Session 6
Web Design & Development - Session 6Web Design & Development - Session 6
Web Design & Development - Session 6
 
J Query
J QueryJ Query
J Query
 
Java Event Handling
Java Event HandlingJava Event Handling
Java Event Handling
 
Event handling
Event handlingEvent handling
Event handling
 
JAVA GUI PART III
JAVA GUI PART IIIJAVA GUI PART III
JAVA GUI PART III
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programming
 
Ajp notes-chapter-03
Ajp notes-chapter-03Ajp notes-chapter-03
Ajp notes-chapter-03
 
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
 
C# Delegates and Event Handling
C# Delegates and Event HandlingC# Delegates and Event Handling
C# Delegates and Event Handling
 

Viewers also liked

Inside the Millennial Mind
Inside the Millennial MindInside the Millennial Mind
Inside the Millennial MindCEB, now Gartner
 
Hello PhoneGap
Hello PhoneGapHello PhoneGap
Hello PhoneGapmwbrooks
 
Pengembangan sbi
Pengembangan sbiPengembangan sbi
Pengembangan sbismkfarmasi
 
50 sites 21st century skills
50 sites 21st century skills50 sites 21st century skills
50 sites 21st century skillsBrandon Raymo
 
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB sabinamora
 
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...Franck Silvestre
 
021 go mature!
021 go mature!021 go mature!
021 go mature!AdWar15
 
Live Mesh Tech Days Suisse
Live Mesh Tech Days SuisseLive Mesh Tech Days Suisse
Live Mesh Tech Days SuisseGregory Renard
 
Internship authenticity prof adi milman
Internship authenticity prof adi milmanInternship authenticity prof adi milman
Internship authenticity prof adi milmanleadinghr
 
Brookfield - White Paper - LGBT Assignees
Brookfield - White Paper - LGBT AssigneesBrookfield - White Paper - LGBT Assignees
Brookfield - White Paper - LGBT Assigneesymcnulty
 
IDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareIDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareJimmy Lim
 
Dela u2 act5_el_contrato_y_su_contenido
Dela u2 act5_el_contrato_y_su_contenidoDela u2 act5_el_contrato_y_su_contenido
Dela u2 act5_el_contrato_y_su_contenidoSoporte_Esca_ST
 

Viewers also liked (20)

Aqiqah
Aqiqah Aqiqah
Aqiqah
 
Inside the Millennial Mind
Inside the Millennial MindInside the Millennial Mind
Inside the Millennial Mind
 
Hello PhoneGap
Hello PhoneGapHello PhoneGap
Hello PhoneGap
 
Pengembangan sbi
Pengembangan sbiPengembangan sbi
Pengembangan sbi
 
50 sites 21st century skills
50 sites 21st century skills50 sites 21st century skills
50 sites 21st century skills
 
Let's runaway with Valadoo
Let's runaway with ValadooLet's runaway with Valadoo
Let's runaway with Valadoo
 
Invest in the UK
Invest in the UKInvest in the UK
Invest in the UK
 
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB
Una Igualdad Merecida; Jacinta Martínez Sánchez 4ºB
 
LEXIA MÉXICO PyME
LEXIA MÉXICO PyMELEXIA MÉXICO PyME
LEXIA MÉXICO PyME
 
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...
Tsaap-Notes – An Open Micro-Blogging Tool for Collaborative Notetaking during...
 
021 go mature!
021 go mature!021 go mature!
021 go mature!
 
Live Mesh Tech Days Suisse
Live Mesh Tech Days SuisseLive Mesh Tech Days Suisse
Live Mesh Tech Days Suisse
 
Internship authenticity prof adi milman
Internship authenticity prof adi milmanInternship authenticity prof adi milman
Internship authenticity prof adi milman
 
Intergrated for BG 2013
Intergrated for BG 2013Intergrated for BG 2013
Intergrated for BG 2013
 
Brookfield - White Paper - LGBT Assignees
Brookfield - White Paper - LGBT AssigneesBrookfield - White Paper - LGBT Assignees
Brookfield - White Paper - LGBT Assignees
 
Survey of plastic
Survey of plasticSurvey of plastic
Survey of plastic
 
IDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlareIDNOG3-Jimmy-CloudFlare
IDNOG3-Jimmy-CloudFlare
 
Alaa Bebars
Alaa BebarsAlaa Bebars
Alaa Bebars
 
Bicaramu celakamu @rgesit
Bicaramu celakamu @rgesitBicaramu celakamu @rgesit
Bicaramu celakamu @rgesit
 
Dela u2 act5_el_contrato_y_su_contenido
Dela u2 act5_el_contrato_y_su_contenidoDela u2 act5_el_contrato_y_su_contenido
Dela u2 act5_el_contrato_y_su_contenido
 

Similar to JQUERY SELECTORS GUIDE

VISUAL CHEAT SHEET
VISUAL CHEAT SHEETVISUAL CHEAT SHEET
VISUAL CHEAT SHEETDanilo Sousa
 
J query 1.7 cheat sheet
J query 1.7 cheat sheetJ query 1.7 cheat sheet
J query 1.7 cheat sheetmaamir farooq
 
J query 17-visual-cheat-sheet1
J query 17-visual-cheat-sheet1J query 17-visual-cheat-sheet1
J query 17-visual-cheat-sheet1sdcasas
 
jQuery BootCamp : Creating the Wrapped Element Set
jQuery BootCamp : Creating the Wrapped Element SetjQuery BootCamp : Creating the Wrapped Element Set
jQuery BootCamp : Creating the Wrapped Element SetWildan Maulana
 
event handling new.ppt
event handling new.pptevent handling new.ppt
event handling new.pptusama537223
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuerySeble Nigussie
 
TAppWeb Training Material
TAppWeb Training MaterialTAppWeb Training Material
TAppWeb Training MaterialArvie Bernal
 
Javascript And J Query
Javascript And J QueryJavascript And J Query
Javascript And J Queryitsarsalan
 
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2KZepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2KThomas Fuchs
 
TApp Documentation
TApp DocumentationTApp Documentation
TApp DocumentationArvie Bernal
 
TAppWeb Training Material
TAppWeb Training MaterialTAppWeb Training Material
TAppWeb Training MaterialArvie Bernal
 
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdfUnit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdfRAVALCHIRAG1
 
TApp Web training material_rev4
TApp Web training material_rev4TApp Web training material_rev4
TApp Web training material_rev4Arvie Bernal
 
jQuery basics for Beginners
jQuery basics for BeginnersjQuery basics for Beginners
jQuery basics for BeginnersPooja Saxena
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuerykolkatageeks
 

Similar to JQUERY SELECTORS GUIDE (20)

VISUAL CHEAT SHEET
VISUAL CHEAT SHEETVISUAL CHEAT SHEET
VISUAL CHEAT SHEET
 
J query 1.7 cheat sheet
J query 1.7 cheat sheetJ query 1.7 cheat sheet
J query 1.7 cheat sheet
 
J query 17-visual-cheat-sheet1
J query 17-visual-cheat-sheet1J query 17-visual-cheat-sheet1
J query 17-visual-cheat-sheet1
 
jQuery BootCamp : Creating the Wrapped Element Set
jQuery BootCamp : Creating the Wrapped Element SetjQuery BootCamp : Creating the Wrapped Element Set
jQuery BootCamp : Creating the Wrapped Element Set
 
J query 1.5-visual-cheat-sheet
J query 1.5-visual-cheat-sheetJ query 1.5-visual-cheat-sheet
J query 1.5-visual-cheat-sheet
 
event handling new.ppt
event handling new.pptevent handling new.ppt
event handling new.ppt
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
TAppWeb Training Material
TAppWeb Training MaterialTAppWeb Training Material
TAppWeb Training Material
 
Javascript And J Query
Javascript And J QueryJavascript And J Query
Javascript And J Query
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2KZepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
 
TApp Documentation
TApp DocumentationTApp Documentation
TApp Documentation
 
TAppWeb Training Material
TAppWeb Training MaterialTAppWeb Training Material
TAppWeb Training Material
 
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdfUnit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
 
JQuery
JQueryJQuery
JQuery
 
TApp Web training material_rev4
TApp Web training material_rev4TApp Web training material_rev4
TApp Web training material_rev4
 
jQuery basics for Beginners
jQuery basics for BeginnersjQuery basics for Beginners
jQuery basics for Beginners
 
J Query Presentation of David
J Query Presentation of DavidJ Query Presentation of David
J Query Presentation of David
 
JavaScript
JavaScriptJavaScript
JavaScript
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuery
 

More from Kaml Sah

Facebook Feature (Like,Unlike,Comment)
Facebook Feature (Like,Unlike,Comment)  Facebook Feature (Like,Unlike,Comment)
Facebook Feature (Like,Unlike,Comment) Kaml Sah
 
Joomla tutorial
Joomla tutorialJoomla tutorial
Joomla tutorialKaml Sah
 
Web application using JSP
Web application using JSPWeb application using JSP
Web application using JSPKaml Sah
 
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)JQUERY EXAMPLE for Web Developer (Video Training Tutorial)
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)Kaml Sah
 
Access specifier in java
Access specifier in javaAccess specifier in java
Access specifier in javaKaml Sah
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsKaml Sah
 

More from Kaml Sah (6)

Facebook Feature (Like,Unlike,Comment)
Facebook Feature (Like,Unlike,Comment)  Facebook Feature (Like,Unlike,Comment)
Facebook Feature (Like,Unlike,Comment)
 
Joomla tutorial
Joomla tutorialJoomla tutorial
Joomla tutorial
 
Web application using JSP
Web application using JSPWeb application using JSP
Web application using JSP
 
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)JQUERY EXAMPLE for Web Developer (Video Training Tutorial)
JQUERY EXAMPLE for Web Developer (Video Training Tutorial)
 
Access specifier in java
Access specifier in javaAccess specifier in java
Access specifier in java
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - Components
 

Recently uploaded

TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 

Recently uploaded (20)

YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 

JQUERY SELECTORS GUIDE

  • 2. SELECTORS / 1. BASIC Selects the combined results of all the specified selectors. Multiple Selector (“selector1, selector2, selectorN”) Selects a single element with the given id attribute. ID Selector (“#id”) Selects all elements with the given tag name Element Selector (“element”) Matches all elements with the given name. Class Selector (“.class”) Selects all elements. All Selector(“*”)
  • 4. SELECTORS / 2. HIERARCHY Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector. Next Siblings Selector (“prev ~ siblings”) Selects all next elements matching "next" that are immediately preceded by a sibling "prev". Next Adjacent Selector (“prev + next”) Selects all elements that are descendants of a given ancestor. Descendant Selector (“ancestor descendant”) Selects all direct child elements specified by "child" of elements specified by "parent". Child Selector (“parent > child”)
  • 6. SELECTORS / 3. BASIC FILTER Selects odd elements, zero-indexed. See also even. :odd Selector Selects all elements that do not match the given selector. :not() Selector Select all elements at an index less than index within the matched set. :lt() Selector Selects the last matched element. :last Selector Selects all elements that are headers, like h1, h2, h3 and so on. :header Selector Select all elements at an index greater than index within the matched set. :gt() Selector Selects the first matched element. :first Selector Selects even elements, zero-indexed :even Selector Select the element at index n within the matched set. :eq() Selector
  • 8. SELECTORS / 4. CONTENT FILTER Select all elements that are the parent of another element, including text nodes. :parent Selector Selects elements which contain at least one element that matches the specified selector. :has() Selector Select all elements that contain the specified text. :contains() Selector
  • 10. SELECTORS / 5. ATTRIBUTE Matches elements that match all of the specified attribute filters. [attribute=value][attribute2=value2] Selects elements that have the specified attribute, with any value. [attribute] Selects elements that have the specified attribute with a value beginning exactly with a given string. [attribute^=value] Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value. [attribute!=value] Selects all elements that are matched specified value [attribute=value] Selects elements that have the specified attribute with a value ending exactly with a given string. [attribute$=value] Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. [attribute~=value] Selects elements that have the specified attribute with a value containing the a given substring. [attribute*=value] Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-). [attribute|=value]
  • 12. SELECTORS / 6. CHILD FILTER Selects all elements that are the only child of their parent. :only-child Selector Selects all elements that are the nth-child of their parent. :nth-child Selector Selects all elements that are the last child of their parent. :last-child Selector Selects all elements that are the first child of their parent. :first-child Selector
  • 14. SELECTORS / 7. FORM (contd.) Selects all elements of type image. :image Selector Selects all elements of type file. :file Selector Selects all elements that are enabled. :enabled Selector Selects all elements that are disabled. :disabled Selector Matches all elements that are checked. :checked Selector Selects all elements of type checkbox. :checkbox Selector Selects all button elements and elements of type button. :button Selector
  • 15. SELECTORS / 7. FORM Selects all elements of type text. :text Selector Selects all elements of type submit. :submit Selector Selects all elements that are selected. selected Selector Selects all elements of type reset. :reset Selector Selects all elements of type radio. :radio Selector Selects all elements of type password. :password Selector Selects all input, textarea, select and button elements. :input Selector
  • 17. EVENTS / MOUSE EVENTS (contd.) Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. .mouseenter( handler(eventObject) ) Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. .mousedown( handler(eventObject) ) Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. .hover( handler(eventObject) ) Bind an event handler to the "focusout" JavaScript event. .focusout( handler(eventObject) ) Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. .dblclick( handler(eventObject) ) Bind an event handler to the "click" JavaScript event, or trigger that event on an element. .click( handler(eventObject) )
  • 18. EVENTS / MOUSE EVENTS Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. .mouseup( handler(eventObject) ) Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. .mouseover( handler(eventObject) ) Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. .mouseout( handler(eventObject) ) Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. .mousemove( handler(eventObject) ) Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. .mouseleave( handler(eventObject) )
  • 20. EVENTS - FORM EVENTS Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. .focus( handler(eventObject) ) Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. .submit( handler(eventObject) ) Bind an event handler to the "select" JavaScript event, or trigger that event on an element. .select( handler(eventObject) ) Bind an event handler to the "change“ JavaScript event, or trigger that event on an element. .change( handler(eventObject) ) Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. .blur( handler(eventObject) )
  • 22. EVENTS - EVENT OBJECT Returns whether event.preventDefault() was ever called on this event object. .isDefaultPrevented() If this method is called, the default action of the event will not be triggered. .preventDefault() The DOM element that initiated the event. .target Describes the nature of the event. .type For key or button events, this attribute indicates the specific button or key that was pressed .which The mouse position relative to the top edge of the document. .pageY The mouse position relative to the left edge of the document .pageX
  • 24. ATTRIBUTES - CLASS Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. .toggleClass( class, switch ) Determine whether any of the matched elements are assigned the given class. .hasClass( class ) Remove a single class, multiple classes, or all classes from each element in the set of matched elements. .removeClass( class ) Adds the specified class(es) to each of the set of matched elements. .addClass( class )
  • 26. CSS - POSITIONING Set the current vertical position of the scroll bar for each of the set of matched elements. .scrollTop( value ) Get the current vertical position of the scroll bar for the first element in the set of matched elements. .scrollTop() Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. .position() Set the current coordinates of every element in the set of matched elements, relative to the document. .offset( coordinates ) Get the current coordinates of the first element in the set of matched elements, relative to the document. .offset() Set the current horizontal position of the scroll bar for each of the set of matched elements. .scrollLeft( value ) Get the current horizontal position of the scroll bar for the first element in the set of matched elements. .scrollLeft()
  • 28. TRAVERSING -TREE TRAVERSAL (cont.) Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. .nextAll( [ selector ] ) Get the immediately following sibling of each element in the set of matched elements, optionally filtered by a selector. .next( [ selector ] ) Get the descendants of each element in the current set of matched elements, filtered by a selector. .find( selector ) Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree. .closest( selector ) Get the children of each element in the set of matched elements, optionally filtered by a selector .children( [ selector ] )
  • 29. TRAVERSING -TREE TRAVERSAL (cont.) Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. .prev( [ selector ] ) Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. .parents( [ selector ] ) Get the parent of each element in the current set of matched elements, optionally filtered by a selector. .parent( [ selector ] ) Get all following siblings of each element up to but not including the element matched by the selector. .nextUntil( [ selector ] )
  • 30. TRAVERSING -TREE TRAVERSAL Get the siblings of each element in the set of matched elements, optionally filtered by a selector. .siblings( [ selector ] ) Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. .prevUntil( [ selector ] ) Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. .prevAll( [ selector ] )
  • 31. http:// www.youtube.com/watch?v =1M4hThjV1vs http:// www.youtube.com/watch?v =_z74QVjOOiA
  • 32. TRAVERSING - FILTERING Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. .map( callback(index, domEl) ) Reduce the set of matched elements to a subset specified by a range of indices. .slice( start, [ end ] ) Remove elements from the set of matched elements. .not() Check the current matched set of elements against a selector and return true if at least one of these elements matches the selector .is( selector ) Reduce the set of matched elements to those that match the selector or pass the function's test. .filter( selector ) Reduce the set of matched elements to the one at the specified index. .eq( index )
  • 34. TRAVERSING - MISCELLANEOUS End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. .end() Get the children of each element in the set of matched elements, including text nodes. .contents() Add the previous set of elements on the stack to the current set. .andSelf() Add elements to the set of matched elements .add( selectors, [ context ] )
  • 36. ATTRIBUTES - ATTR Remove an attribute from each element in the set of matched elements. .removeAttr() Set one or more attributes for the set of matched elements. .attr( attributeName, value ) Get the value of an attribute for the first element in the set of matched elements. .attr( attributeName )
  • 38. ATTRIBUTES - HTML Set the HTML contents of each element in the set of matched elements. .html( htmlString ) Get the HTML contents of the first element in the set of matched elements. .html()
  • 40. ATTRIBUTES - TEXT Set the content of each element in the set of matched elements to the specified text. .text( textString ) Get the combined text contents of each Element in the set of matched elements, including their descendants. .text()
  • 42. ATTRIBUTES - VALUE Set the value of each element in the set of matched elements. .val( value ) Get the current value of the first element in the set of matched elements. .val()
  • 44. CSS - CSS Set one or more CSS properties for the set of matched elements. .css( propertyName, value) Get the value of a style property for the first element in the set of matched elements. css( propertyName )
  • 46. CSS - HEIGHT & WIDTH (cont.) Get the current computed width for the first element in the set of matched elements, including padding and border. .outerWidth() Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. .outerHeight() Get the current computed width for the first element in the set of matched elements, including padding but not border. .innerWidth() Get the current computed height for the first. element in the set of matched elements, including padding but not border .innerHeight() Get the current computed height for the first .height() Set the CSS height of every matched element. element in the set of matched elements. .height( value )
  • 47. CSS - HEIGHT & WIDTH Get the current computed width for the first element in the set of matched element .width() Set the CSS width of each element in the set of matched elements. .width( value )
  • 49. MANIPULATION - INSIDE Insert content, specified by the parameter, to the end of each element in the set of matched elements. .prependTo( target ) Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. .prepend( content ) Insert every element in the set of matched elements to the end of the target. .appendTo( target ) Insert content, specified by the parameter, to the end of each element in the set of matched elements. .append( content )
  • 51. MANIPULATION - OUTSIDE Insert every element in the set of matched elements after the target. .insertAfter( target ) Insert every element in the set of matched elements before the target. .insertBefore( target ) Insert content, specified by the parameter, before each element in the set of matched elements. .before( content ) Insert content, specified by the parameter, after each element in the set of matched elements. .after( content )
  • 53. MANIPULATION - AROUND Wrap an HTML structure around the content of each element in the set of matched elements. .wrapInner( wrappingElement ) Wrap an HTML structure around all elements in the set of matched elements. .wrapAll( wrappingElement ) Wrap an HTML structure around each element in the set of matched elements. .wrap( wrappingElement )
  • 55. MANIPULATION - REPLACING A selector expression indicating which element(s) to replace. .replaceAll() Replace each element in the set of matched elements with the provided new content. .replaceWith( newContent )
  • 57. EVENTS - HANDLER ATTACHMENT Remove a previously-attached event handler from the elements. .unbind( eventType, handler (eventObject) ) Attach a handler to an event for the elements. The handler is executed at most once per element. .one( eventType, [ eventData ], handler (eventObject) ) Attach a handler to the event for all elements which match the current selector, now or in the future. .live( eventType, eventData, handler ) Remove all event handlers previously attached using .live() from the elements. .die() Attach a handler to an event for the elements. .bind( eventType, [ eventData ], handler (eventObject) )
  • 58. http:// www.youtube.com/watch?v =krpWZ7kIXt8 http:// www.youtube.com/watch?v =Axa7kKbC4Ec http:// www.youtube.com/watch?v =Axa7kKbC4Ec
  • 59. EFFECTS - BASIC .hide( duration, [ callback ] ) Hide the matched elements. .show( duration, [ callback ] ) Display the matched elements.
  • 61. EFFECTS - SLIDING .slideDown( [ duration ], [ callback ] ) Display the matched elements with a sliding motion. .slideToggle( [ duration ], [ callback ] ) Display or hide the matched elements with a sliding motion. .slideUp( [ duration ], [ callback ] ) Hide the matched elements with a sliding motion.
  • 63. EFFECTS - FADING .fadeIn( [ duration ], [ callback ] ) Display the matched elements by fading them to opaque. .fadeOut( [ duration ], [ callback ] ) Hide the matched elements by fading them to transparent. .fadeTo( duration, opacity, [ callback ] ) Adjust the opacity of the matched elements.