Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7814 closed bug (invalid)

[value=""] does not consider value of inputs

Reported by: [email protected] Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


Searching for inputs with empty values comes back with false matches if there is a value="" provided in the HTML.

For example:

$('<input value=""/>').val('test').is('[value=""]')

will return true, even though there is a value, whereas:


will correctly return false.

Test case here: http://jsfiddle.net/nmffK/

Change History (2)

comment:1 Changed 12 years ago by snover

Resolution: invalid
Status: newclosed

Thanks for the report, but this is not a jQuery bug. Just because the value property changes does not mean that the value attribute changes.

comment:2 Changed 12 years ago by Rick Waldron

#8554 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.