$('.in-stock span').html("your new string");
$(document).ready(function(){ $("#span1").on('DOMSubtreeModified',function(){ // text change handler }); });