Modify ↓
Ticket #5697 (closed bug: fixed)
.val() doesn't work with empty value
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.4a2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Trying to get an empty value is impossible: http://groups.google.com/group/jquery-dev/t/db8554d10e2c1899
Change History
comment:3 Changed 3 years ago by john
That extra logic wasn't necessary, we can just use .val() instead. http://github.com/jquery/jquery/commit/e87b090cb706b495b6c48e960d6c059c7fbddbd9
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed. http://github.com/jquery/jquery/commit/261b7efb5f86a5c9a3de8434f3cad858101e4249