Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set value in span using javascript

//set value in span using jquery
$("#idname").text("your value");

//set value in span using Javascript
document.getElementById("idname").textContent="Your value";
document.getElementById("message").innerHTML="your value";
 
PREVIOUS NEXT
Tagged: #set #span #javascript
ADD COMMENT
Topic
Name
1+6 =