Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14512 closed bug (notabug)

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

Reported by: its.mahdi@… 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

Change History (1)

comment:1 Changed 6 years ago by timmywil

Resolution: notabug
Status: newclosed

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

Note: See TracTickets for help on using tickets.