Answers for "set value and variable in span using jquery"

2

set value in span using jquery

//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";
Posted by: Guest on September-14-2021

Code answers related to "set value and variable in span using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language