Opened 9 years ago
Closed 9 years ago
#14512 closed bug (notabug)
unexpected result when using .attr() before/after .val() and .prop() methods
Reported by: | 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
Note: See
TracTickets for help on using
tickets.
This is the correct behavior. The value attribute actually corresponds to the defaultValue property.