Skip to main content

Bug Tracker

Side navigation

#8963 closed bug (invalid)

Opened April 25, 2011 06:30AM UTC

Closed April 25, 2011 02:55PM UTC

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

Reported by: 181652432@qq.com 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]

Attachments (0)
Change History (1)

Changed April 25, 2011 02:55PM UTC by timmywil comment:1

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/