Skip to main content

Bug Tracker

Side navigation

#13808 closed bug (notabug)

Opened April 22, 2013 02:04PM UTC

Closed April 22, 2013 02:21PM UTC

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

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?

Attachments (0)
Change History (1)

Changed April 22, 2013 02:21PM UTC by gibson042 comment:1

component: unfiledattributes
resolution: → notabug
status: newclosed

Refer to, particularly the paragraph starting with "The value property versus attribute on input elements is another example".