views:

153

answers:

0

I need to copy a form information with all types of elements and send it with AJAX.

Tried these: 1. cloneNode on the form. - Doesn't work with IE, only copies text stuff properly.

  1. cloneNode on each element.

    • Doesn't work with IE, only copies text stuff properly.
  2. Making new textareas for each element, and copying the value in.

    • Doesn't work for textareas in IE, formatting is lost.

I imagine a combination of those 3 would work for IE and FF but is there any decent solution to this? Shortness of code is a priority.