Opened 10 years ago
Closed 10 years ago
#13808 closed bug (notabug)
.attr("value", *** ) can set the value of an input element but it can't reset it
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | attributes | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This bug (if it's a bug) is present on all the versions of jQuery.
Why .attr() can only set a value, when .prop can set and reset it?
Change History (1)
comment:1 Changed 10 years ago by
Component: | unfiled → attributes |
---|---|
Resolution: | → notabug |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Refer to http://jquery.com/upgrade-guide/1.9/#attr-versus-prop-, particularly the paragraph starting with "The value property versus attribute on input elements is another example".