youngApprentice
Programmer
Hi All,
For the $ function in Prototype 1.5.1, which is the correct syntax to be cross browser:
$($('myContainer')).appendChild(myHeading);
or
$($('myContainer').appendChild(myHeading));
They both seem to work, and I need this to work in several browsers. The second one seems to be more inline with the "How Protoype extends the DOM" page.
TIA,
youngApprentice
For the $ function in Prototype 1.5.1, which is the correct syntax to be cross browser:
$($('myContainer')).appendChild(myHeading);
or
$($('myContainer').appendChild(myHeading));
They both seem to work, and I need this to work in several browsers. The second one seems to be more inline with the "How Protoype extends the DOM" page.
TIA,
youngApprentice