Skip to main content

Bug Tracker

Side navigation

#14512 closed bug (notabug)

Opened November 04, 2013 05:28PM UTC

Closed November 04, 2013 05:39PM UTC

unexpected result when using .attr() before/after .val() and .prop() methods

Reported by: its.mahdi@yahoo.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

The result of attr(), val() and prop() methods will not be correct, in case of using different methods for reading/changing the value of a single element (Only tested on an input-box form field).

Please take a look at the test case here: http://jsfiddle.net/N2Aze/

Browsers: Mozilla Firefox 25.0 - Google Chrome 30.0.1599.101 m

OS: Windows 8

Attachments (0)
Change History (1)

Changed November 04, 2013 05:39PM UTC by timmywil comment:1

resolution: → notabug
status: newclosed

This is the correct behavior. The value attribute actually corresponds to the defaultValue property.