js replace span text code example
Example 1: jquery change span tag text
$('.in-stock span').html("your new string");
Example 2: change span value javascript
document.getElementById("serverTime").innerHTML = ...;
$('.in-stock span').html("your new string");
document.getElementById("serverTime").innerHTML = ...;