Answers for "change span html"

2

change text of span js html

document.getElementById("myspan").textContent="newtext";
Posted by: Guest on July-30-2021
0

set span text

$("#spanID").text('your text');
Posted by: Guest on May-23-2020

Browse Popular Code Answers by Language