Skip to main content

Bug Tracker

Side navigation

#2285 closed bug (worksforme)

Opened February 05, 2008 06:32PM UTC

Closed April 21, 2008 04:36PM UTC

Last modified May 13, 2008 05:47PM UTC

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:

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)
  • test.html (0.9 KB) - added by v1nz February 05, 2008 06:33PM UTC.

    a very simple example of the bug

Change History (3)

Changed February 17, 2008 06:31PM UTC by brandon comment:1

owner: → brandon

Changed April 21, 2008 04:36PM UTC by brandon comment:2

resolution: → worksforme
status: newclosed

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.

Changed May 13, 2008 05:47PM UTC by flesler comment:3