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: | waynepurtonsmith@hotmail.co.uk | 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.
Attachments (0)
Change History (1)
Changed May 27, 2011 10:02PM UTC by comment:1
component: | unfiled → manipulation |
---|---|
priority: | undecided → low |
resolution: | → wontfix |
status: | new → closed |
type: | enhancement → feature |
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.