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

RE: [CF-Scripting] parentElement()



Right I think this should do what you want. 

//obj is your reference to the parentElement
objOldcontent = obj.innerHTML;
objNewcontent = "<TH>"+objOldcontent+"</TH>";
obj.outerHTML = objNewcontent;

It will copy the content of the <TD> and replace it with a <TH>


Russ