Side navigation
#7482 closed bug (patchwelcome)
Opened November 12, 2010 09:42AM UTC
Closed December 24, 2010 05:04AM UTC
Last modified December 24, 2010 05:06AM UTC
.html() does not work when <input type="text"> is updated
Reported by: | kiphughes@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.5 |
Component: | attributes | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This should explain it all. Look at the alert, it's not displaying what is expected.
Attachments (0)
Change History (3)
Changed November 12, 2010 03:17PM UTC by comment:1
component: | unfiled → attributes |
---|---|
keywords: | → needsreview |
priority: | undecided → low |
status: | new → open |
Changed December 24, 2010 05:04AM UTC by comment:2
resolution: | → patchwelcome |
---|---|
status: | open → closed |
Changed December 24, 2010 05:06AM UTC by comment:3
keywords: | needsreview |
---|
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?