Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9448 closed feature (wontfix)

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

Reported by: waynepurtonsmith@… Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version:
Keywords: Cc:
Blocked by: Blocking:

Description

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.

Change History (1)

comment:1 Changed 8 years ago by timmywil

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.

Note: See TracTickets for help on using tickets.