jQuery Retrieving Page Content

Description

Mind Map on jQuery Retrieving Page Content, created by sidharth basu on 27/08/2014.
sidharth basu
Mind Map by sidharth basu, updated more than 1 year ago
sidharth basu
Created by sidharth basu over 9 years ago
216
0

Resource summary

jQuery Retrieving Page Content
  1. Selectors & Filters retrieve content from the document
    1. selectors retrieve an array of objects as per the selection criteria
      1. this array is not the set of DOM elements
        1. it is the collection of jQuery objects that provide pre-defined functions for further operating on objects
      2. fiilters operate on selectors to further refine the results array that the selectors return
      3. jQuery Selector
        1. Basic jQuery Selector
          1. tagname
            1. all elements that are named tagname
            2. #identifier
              1. element with ID of identifier
              2. .className
                1. all elements with CLASS attribute of className
                2. tag.className
                  1. all elements of type tag with CLASS attribute of className
                  2. tag#id.className
                    1. element of type tag with ID of id and CLASS attribute of className
                    2. *
                      1. all elements of the page
                    3. Hierarchical jQuery Selector
                      1. selector, selector, ...
                        1. all specified selectors
                        2. .class1.class2
                          1. all elements with both class1 & class2 applied
                          2. parent > child
                            1. all child elements that are children of element of type parent
                            2. ancestor descendant
                              1. all descendant elements tht are contained within element of type ancestor
                              2. prev + next
                                1. all next elements that are next to a prev element
                                2. prev ~ siblings
                                  1. all sibling elements that comes after prev and match the siblings selector
                              3. jQuery Filters (provides fine grained control over the elements selected)
                                1. 1. Basic
                                  1. basic filtering like getting first, last and even and odd numbered elements in a returned set
                                  2. 2. Content
                                    1. filters a set of elements based on their content, like whether the element contains a particular string
                                    2. 3. Visibility
                                      1. filters a set of elements based on their visibility setting of each element as a test
                                      2. 4. Attribute
                                        1. Examines a given attribute of an element to determine whether it should be filtered out
                                        2. 5. Child
                                          1. Selects elements based on their relationship with their parent element
                                          2. 6. Form
                                            1. Provides specialized filters that operate on form elements
                                          3. Retrieving Page Content
                                            1. size(), length
                                              1. number of elements in jQuery result set
                                              2. get()
                                                1. returns an array of matched DOM elements
                                                2. get(index)
                                                  1. access a single DOM element at a specified index in matched set
                                                  2. find(expression)
                                                    1. searches for descendant elements that matches the specified expression
                                                    2. each(fn)
                                                      1. executes a function within the context of every matched element
                                                    Show full summary Hide full summary

                                                    Similar

                                                    All the Countries of the World and their Capital Cities
                                                    PatrickNoonan
                                                    Breaking Bad
                                                    PatrickNoonan
                                                    Geography Restless Earth
                                                    sophieelizabeth
                                                    CHEMISTRY C1 7
                                                    x_clairey_x
                                                    Memory - AQA Psychology Unit 1 GCSE
                                                    joshua6729
                                                    GCSE Biology 4 OCR - The Processes of Life
                                                    blairzy123
                                                    Physics 1
                                                    Peter Hoskins
                                                    “In gaining knowledge, each area of knowledge uses a network of ways of knowing.” Discuss this statement with reference to two areas of knowledge
                                                    Julianapabab
                                                    Using GoConqr to study geography
                                                    Sarah Egan
                                                    Highway Code Road Signs for Driving Test
                                                    Sarah Egan
                                                    HEMORRAGIAS - OBST PATOLOGICA
                                                    María José Alvarez Gazzano