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 comment:1
Changed November 05, 2013 02:00PM UTC by comment:2
component: | unfiled → selector |
---|---|
resolution: | → notabug |
status: | new → closed |
Special characters like .
must be escaped or in quotes: http://api.jquery.com/category/selectors/
$(function(){
alert($("input[value='12.12.12.12']").length);
});