I want to create image on list
Please help.
Here is my code:
<li> during runtime.Please help.
Here is my code:
Code:
function myFunction() {
var ul = document.getElementById("list");
var li = document.createElement("li");
li.appendChild(document.createTextNode(<img src=picture.jpg)); // I want the image to go here. any suggestion?
ul.appendChild(li);
Comment