Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add a tag inside span

var span = document.getElementById("span"); 

var a = document.createElement('a');
        a.href = "http://domain.com";
        span.appendChild(a);
 
PREVIOUS NEXT
Tagged: #js #add #tag #span
ADD COMMENT
Topic
Name
6+3 =