#10731 closed bug (duplicate)
jq1.7 selector [value=""] Something wrong
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | attributes | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
[value=""] not correct when input's value changed (ie is ok)
[value=] correct when input's value changed
Change History (3)
comment:1 Changed 11 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → duplicate |
Status: | new → closed |
comment:3 Changed 11 years ago by
But not in the way you expect. It's actually IE that is wrong in this case. Keep in mind that the value attribute does not stay up to date with the current value, but only sets the default value. To select an input by their current value, you can do this:
$('input').filter(function() { return this.value === 'something'; });
Note: See
TracTickets for help on using
tickets.
The deprecation of the value hook will fix this.