Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13808 closed bug (notabug)

.attr("value", *** ) can set the value of an input element but it can't reset it

Reported by: maxime.euziere@… Owned by:
Priority: undecided Milestone: None
Component: attributes Version:
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/sCUJa/

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 7 years ago by gibson042

Component: unfiledattributes
Resolution: notabug
Status: newclosed

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".

Note: See TracTickets for help on using tickets.