Skip to main content

Bug Tracker

Side navigation

#14514 closed bug (notabug)

Opened November 05, 2013 08:20AM UTC

Closed November 05, 2013 02:00PM UTC

attribute selector is not working if value has . in it

Reported by: tgvrs_santhosh@yahoo.com Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

attribute selector is not working if value has . in it

<input value='12.12.12.12' />

$(function(){

alert($("input[value=12.12.12.12]").length);

});

link to jsfiddle : <http://jsfiddle.net/63Jf6/>

It's reproducible in latest versions of jquery as well.. earlier, it use to work in 1.4.2

Attachments (0)
Change History (2)

Changed November 05, 2013 09:26AM UTC by anonymous comment:1

$(function(){

alert($("input[value='12.12.12.12']").length);

});

Changed November 05, 2013 02:00PM UTC by gibson042 comment:2

component: unfiledselector
resolution: → notabug
status: newclosed

Special characters like . must be escaped or in quotes: http://api.jquery.com/category/selectors/