Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13461 closed bug (notabug)

$("#myform :input").not("[value='']").serialize() does not exclude empty inputs

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


$("#myform :input[value!=]").serialize() doesn't work for this either. had to go back to using jquery 1.8

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

doesn't work

I will assume you were expecting that the value='' would select inputs that were currently empty, as opposed to inputs that had specified an empty initial value. That is not per spec and why it was changed. But that is my assumption of what you mean by "doesn't work" so I will close this. Try the jQuery Migrate plugin with 1.9 if you are not using it already.

Note: See TracTickets for help on using tickets.