Bug Tracker

Modify

Ticket #5697 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

.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:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.