Hello,
I cant seem to apply a style to a table cell I have added dynamically using the DOM functions. I try the following...
var t3r2 = document.createElement("td");
t3r2.setAttribute( "height", "12" );
t3r2.setAttribute( "valign", "top" );
var typelink = document.createElement("a");
typelink.setAttribute("href","#");
typelink.setAttribute("class","toptablecell");
addEvent( typelink, "onclick", showTransactionTypeForMember, false );
I use the 'toptablecell' css style successfully in other non dynamic portions of the page. How can I add this style properly?
Thanks
Matt
Matt
I cant seem to apply a style to a table cell I have added dynamically using the DOM functions. I try the following...
var t3r2 = document.createElement("td");
t3r2.setAttribute( "height", "12" );
t3r2.setAttribute( "valign", "top" );
var typelink = document.createElement("a");
typelink.setAttribute("href","#");
typelink.setAttribute("class","toptablecell");
addEvent( typelink, "onclick", showTransactionTypeForMember, false );
I use the 'toptablecell' css style successfully in other non dynamic portions of the page. How can I add this style properly?
Thanks
Matt
Matt