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 10 years ago
217
0
1 2 3 4 5 (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

                                                    0 comments

                                                    There are no comments, be the first and leave one below:

                                                    Similar

                                                    GCSE Maths Symbols, Equations & Formulae
                                                    Andrea Leyden
                                                    EBW: Onderwerp 1, Gr7 (KABV)
                                                    mvloch
                                                    Physics: Energy resources and energy transfer
                                                    katgads
                                                    Religious Studies- Matters of life and death
                                                    Emma Samieh-Tucker
                                                    Edexcel Additional Science Biology Topic 2- Life Processes
                                                    hchen8nrd
                                                    Musical Terms
                                                    Abby B
                                                    FUNCTIONALIST ROLE OF EDUCATION
                                                    ashiana121
                                                    GCSE History – Social Impact of the Nazi State in 1945
                                                    Ben C
                                                    World War One
                                                    Micheal Heffernan
                                                    HEMORRAGIAS - OBST PATOLOGICA
                                                    María José Alvarez Gazzano