styling a dynamic row?

styling a dynamic row?

ticketheadtickethead Posts: 2Questions: 0Answers: 0
edited August 2010 in General
Anyone know how to attach a class or a style to a dynamically added row?

I found some code to get the new row,
[code]
var n = oTable.fnSettings().aoData[newRow[0]].nTr;
[/code]
Just can't seem to figure out how to style the thing!

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Does this work?

    [code]
    n.style.width = "100px";
    n.className = "whatever";
    [/code]
    Allan
  • ticketheadtickethead Posts: 2Questions: 0Answers: 0
    Yes! thanks
This discussion has been closed.