1

I'm trying to define an element in javascript as a string and then insert it. Have I defined it wrong, or is there another problem?

var NEW_ROW= '<TR class="NewRow"></TR>';
YAHOO.util.Dom.insertAfter(NEW_ROW, referenceNode);
Thalecress
  • 3,231
  • 9
  • 35
  • 47

1 Answers1

1

It's reversed:

YAHOO.util.Dom.insertAfter(referenceNode, NEW_ROW);
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265