1

Maybe I'm way off, but here we go.

print '<li  '.$class.'><a id="flodet" href="index.php?artikelid='.$rad["id"].'">'.$rad["header"].'</a> </li>';

This line print links to articles from a database. The class flodet just style the link. What I want to do is to create another div inside the class flodet. I have tried to do this with these couple of lines of javascript.

function myFunc() {
    var bild = document.createElement("div");
    document.getElementById('flodet').appendChild(bild);
}

Am I way off or am I on the right track?

zajonc
  • 1,935
  • 5
  • 20
  • 25
WilliamG
  • 451
  • 1
  • 8
  • 16