[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [CF-Scripting] parentElement()
- To: "Javascript, CSS, XML, DHTML" <scripting@list.cfdeveloper.co.uk>
- Subject: Re: [CF-Scripting] parentElement()
- From: "Stephen Moretti (cfmaster)" <stephen@cfmaster.co.uk>
- Date: Thu, 11 Nov 2004 16:38:47 +0000
- In-reply-to: <00f201c4c80b$8ad55a10$4200a8c0@herb.londonweb.net>
- List-archive: <http://list.cfdeveloper.co.uk/pipermail/scripting>
- List-help: <mailto:scripting-request@list.cfdeveloper.co.uk?subject=help>
- List-id: Javascript, CSS, XML, DHTML <scripting.list.cfdeveloper.co.uk>
- List-post: <mailto:scripting@list.cfdeveloper.co.uk>
- List-subscribe: <http://list.cfdeveloper.co.uk/mailman/listinfo/scripting>, <mailto:scripting-request@list.cfdeveloper.co.uk?subject=subscribe>
- List-unsubscribe: <http://list.cfdeveloper.co.uk/mailman/listinfo/scripting>, <mailto:scripting-request@list.cfdeveloper.co.uk?subject=unsubscribe>
- References: <00f201c4c80b$8ad55a10$4200a8c0@herb.londonweb.net>
- Reply-to: "Javascript, CSS, XML, DHTML" <scripting@list.cfdeveloper.co.uk>
- User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)
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.