Skip to main content

Bug Tracker

Side navigation

#9448 closed feature (wontfix)

Opened May 27, 2011 09:54PM UTC

Closed May 27, 2011 10:02PM UTC

.empty() on input field instead of .val('')

Reported by: Owned by:
Priority: low Milestone:
Component: manipulation Version:
Keywords: Cc:
Blocked by: Blocking:

Why not input fields can be emptied when using the .empty() function instead declaring it with .val(''). It could be useful if .empty() could empty the input field AND reset it -- when I say reset I mean resetting the file input that can clear the selected file instead of emptying the value.

Attachments (0)
Change History (1)

Changed May 27, 2011 10:02PM UTC by timmywil comment:1

component: unfiledmanipulation
priority: undecidedlow
resolution: → wontfix
status: newclosed
type: enhancementfeature

Thanks for taking the time to contribute to the jQuery project!

Expanding the functionality of empty in that way would be arbitrary as empty works with html. Perhaps you could write a plugin to implement the behavior you are referring to.