1. Base syntax: $ (selector). Action ()
2. Base Selector
1) All Seletor $ ("*")2) Class Selector $ (". Class")3) Element Selector $ ("element")4) ID Selector $ ("#id")5) Multiple Selector $ ("Selector1, Selector2, Selectorn")
View Code
3. Property Selector
1) Attribute Contains Prefix Selector [name|= "value")] $("[attribute|= ' value ']") quotation marks are optional2) Attribute COntains Selector [name*= "value")] $ ("attribute*= ' value ']")3) Attribute Contains Word Selector [name~= "Value"] $("[attribute~= ' value ']")4) Attribute Equal withSelector[name= "Value"] $("[attribute= ' value ']")5) Attribute not Equal Selector [name!= "Value"] $("[attribute!= ' value ']")6) Attribute Ends with Selector [name$= "Value"] $("[attribute$= ' value ']")7) Attribute starts with Selector [name^= "Value"] $("[attribute^= ' value ']")8) has Attribute Selector [name] $ ("[Attribute]")9) Multiple Attribute Selector [name1= "value1" [name2= "Vallue2"] $("[Attributefilter1][attributefilter2][attributefiltern]")
View Code
4. Basic Filter
1): Animated Selector $ (": Animated")2): eq () Selector a) $ (": EQ (Index)") b) $ (": eq (-index)")3): Even Selector $ (": Even")4): First Selector $ (": First")5): Focus Selector $ (": Focus")6): Header Selector $ (": Header")7): Last Selector $ (": Last")8): GT () selector a) $ (": GT (Index)") b) $ (": GT (-index)")9): LT () selector a) $ (": LT (Index)") b) $ (": Lt (-index)")10): Not () selector $ (": Not (selector)")
View Code
jquery Learning Notes