Bug Tracker

Opened 9 years ago

Closed 9 years ago

#8963 closed bug (invalid)

$('name=a.b'),when the value include the point '.',the error has been throwed

Reported by: 181652432@… 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 9 years ago by timmywil

Component: unfiledselector
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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/

Note: See TracTickets for help on using tickets.