#2285 closed bug (worksforme)
clone() issue with textarea
Reported by: | v1nz | Owned by: | brandon |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.4 |
Component: | core | Version: | 1.2.2 |
Keywords: | clone | Cc: | |
Blocked by: | Blocking: |
Description
If you clone a form which contains a textarea, then submit the cloned form, if you try to get the value of the textarea in the form's handlers (submit handler, or click handler of the submit button), the returned value is the value of the first textarea, not the cloned one!
Attachments (1)
Change History (4)
Changed 15 years ago by
comment:1 Changed 15 years ago by
Owner: | set to brandon |
---|
comment:2 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The text method uses the innerText property which is still the original value within the source code according to the browser. Use the more appropriate .val() method to get the value of the text area and it works as expected.
comment:3 Changed 15 years ago by
Milestone: | 1.2.3 → 1.2.4 |
---|
Note: See
TracTickets for help on using
tickets.
a very simple example of the bug