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 about 10 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

                                                    Social Influence
                                                    smita089
                                                    Atoms, Protons, Neutrons & Electrons quiz
                                                    leonie.examtime
                                                    The Heart
                                                    annalieharrison
                                                    Chemistry 3 Extracting Metals Core GCSE
                                                    Chloe Roberts
                                                    MCAT Study Plan
                                                    Alice McClean
                                                    IB SL Biology: Cells
                                                    mcgowan-w-10
                                                    Quick tips to improve your Exam Preparation
                                                    James Timpson
                                                    Realidad De Nuestra Identidad Cultural
                                                    53831
                                                    Using GoConqr to teach French
                                                    Sarah Egan
                                                    2PR101 1.test - 3. část
                                                    Nikola Truong
                                                    Creating Mind Maps with GoConqr
                                                    Sarah Egan