Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7482 closed bug (patchwelcome)

.html() does not work when <input type="text"> is updated

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.5
Component: attributes Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


This should explain it all. Look at the alert, it's not displaying what is expected.


Change History (3)

comment:1 Changed 12 years ago by ajpiano

Component: unfiledattributes
Keywords: needsreview added
Priority: undecidedlow
Status: newopen

When you set the value of an input element using .val() (or elem.value), you are updating a DOM property, not an HTML attribute. This issue comes up frequently. As to just why .val() is so anomalous, I cannot provide a great answer at the moment. I am not sure if this is something that is "fixable" with jQuery or if it is an issue inherent to this particular property. Perhaps someone else can provide some illumination?

comment:2 Changed 12 years ago by dmethvin

Resolution: patchwelcome
Status: openclosed

This is a problem similar to #3016 and #1736; dynamic values are not guaranteed to be copied when nodes are cloned or serialized to a string. All the general fixes would be horribly complex to implement but if you have a breakthrough idea let us know.

comment:3 Changed 12 years ago by dmethvin

Keywords: needsreview removed
Note: See TracTickets for help on using tickets.