how to set value in span tag in html code example Example: jquery change span tag text $('.in-stock span').html("your new string");