[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CF-Scripting] parentElement()



Tom Smith wrote:

Probably not the right list for this...

This is the right place...

but does anyone know if there's a way to change a parentElement in JS?

I have some code that works on the selected range (createRange())... I can get the parentElement() from this, but I want to change the parentElemenet (a table cell - TD) to a table header (TH)

Any help would be very useful right now!


Well parentElephant is a readonly property, so I would guess you would have to insert a new TH element at the same level as your parent and then move the child element into the new element and delete the old parent.

Couldn't you just change the style?

--
Registration for MX Europe 2005 is now open. http://www.mxeurope.org/go/registration


Early bird discounts available.