OBJECTIVE: Copy all the attributes of a TEXTAREA element then apply
them to a new element (ie. a DIV) and finally delete the original
TEXTAREA element.

POSSIBILE SOLUTIONS:

1) I could write a function that cycles through all possible attribute
names (ie. class, style, title, name, id, etc.) and if they exist copy
their values to the DIV element (but this seems intensive -- is there
a shortcut?)

2) I looked at trying to set the .nodeName property but it only has a
getter method, not a setter method (it's read-only)

Any ideas?

Thanks in advance...

Reply via email to