article excerpt from: Http://blog.chinaunix.net/uid-26957269-id-3530689.html
Searching for elements1. Get elements using tag name$ ("label name")
2. Get elements by ID$ ("#id_name")
3. Get elements by class name$ (". ClassName")
4. Get multiple elements at once$ ("element name, element name, element name ....")
5. Get elements by specifying hierarchical relationships$ ("Descendants of Ancestors")$ ("Parent > Child")$ ("front + after")$ ("Brother ~ brother")
6. Get the element based on the attribute value of the element[attribute][attribute = value][Attribute! = value][attribute ^= value][attribute $= value][attribute *= value]
7. Get the element through the filter$ ("element name: Filter")
filter List: First: Last: Not (filter): Even: Odd: eq (index): LT (index): GT (Index): Header: Animated: Contains (text): Empty: Has (selector):p Arent "Note: This is to get a non-empty element that is not a parent element"
8. Get TABLE Element$ (": Form filter Name")
ways to get form elements: Input: Text:p Assword: Radio: CheckBox: Submit: Image: Reset: Button: FileNote: The form label is also the label, can also be used to obtain the label name, but some types of labels can be added to filter to distinguish. such as: $ ("Input:text") "
9, through the filter to obtain the table cell element: Enable to get an element of the input state:d isabled to get an element that is not in the input state: Checked gets the element of the selected element: Selected Gets the element of the selected state in the drop-down box
10. Get the element from the collection element by specifying the ordinal$ ("element name"). EQ (index)
11. Get elements that match the specified conditions$ ("element name"). Filter (expr)
12. Gets the element of the specified range$ ("element name"). Slice (Start,[end])
13. Get elements that are consistent with conditional expressions$ ("element name"). Is (expr)
14. Gets the next element of the element$ ("element name"). Next ([expr])
15. Get the previous element of an element$ ("element name"). Prev ([expr])
16. Get the parent element of the element$ ("element name"). Parent ([expr])
17. Get child elements of an element$ ("element name"). Children ([expr])
Set Element1. Append content inside the element$ ("element name"). Append (content)
2. Append content to different positions in the element$ ("element name"). AppendTo (content)
3. Append content at the beginning of the element$ ("element name"). Prepend (content)
4. Append elements at the beginning of different elements$ ("element name"). Prependto (content)
5. Append the sibling element after the element$ ("element name"). After (content)
6. Append sibling elements before element$ ("element name"). Before (content)
7. Elements containing elements with the specified structure$ ("element name"). Wrap (HTML)
8. The element with the specified structure contains a collection of multiple elements$ ("element name"). Wrapall (HTML)
9. Include child elements with the specified label$ ("element name"). Wrapinner (HTML)
10. Replacing Elements$ ("element name"). ReplaceWith (content)$ ("element name"). ReplaceAll (selector)
11. Deleting elements$ ("element name"). Empty ()$ ("element name"). Remove ([expr])
12. Copying elements$ ("element name"). Clone ()$ ("element name"). Clone (True)
jquery Search and set elements