#;&,.+*~':"!^$[]()=>|/
) as a literal part of a name, you must escape the character with two backslashes: \\
. For example, if you have an an input with name="names[]"
, you can use the selector$("input[name=names\\[\\]]")
.Attribute Contains Selector [name*=value]
Selects elements that have the specified attribute with a value containing the a given substring.
Attribute Contains Word Selector [name~=value]
Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
Attribute Ends With Selector [name$=value]
Selects elements that have the specified attribute with a value ending exactly with a given string.
Attribute Equals Selector [name=value]
Selects elements that have the specified attribute with a value exactly equal to a certain value.
Attribute Not Equal Selector [name!=value]
Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.
Attribute Starts With Selector [name^=value]
Selects elements that have the specified attribute with a value beginning exactly with a given string.
full reference : http://api.jquery.com/category/selectors/
jquery selector cheat sheet : http://www.skidoosh.co.uk/jquery/jquery-selectors-and-attribute-selectors-reference-and-examples-v2/
0 comments:
Post a Comment