//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";
$('.in-stock span').html("your new string");
$('#spanId').text();
$("#elementId").html('your text for span!');
$("#submittername").text("testing");