how to add span inside div using dom javascript code example
Example: js add a tag inside span
var span = document.getElementById("span");
var a = document.createElement('a');
a.href = "http://domain.com";
span.appendChild(a);
var span = document.getElementById("span");
var a = document.createElement('a');
a.href = "http://domain.com";
span.appendChild(a);