Opened 12 years ago
Closed 12 years ago
#8963 closed bug (invalid)
$('name=a.b'),when the value include the point '.',the error has been throwed
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
example:<input type="text" name="tlinePrice.cprcitem" />
jquery:$('name=tlinePrice.cprcitem').val();
error in fireFox:uncaught exception: Syntax error, unrecognized expression: [name=tlinePrice.cprcitem]
Change History (1)
comment:1 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Your selector is invalid. You need to use brackets for attribute selectors and quotes are needed around the attribute value. http://jsfiddle.net/timmywil/gmYtr/ See http://api.jquery.com/attribute-equals-selector/