");$("input, textarea").change(function(){div.html($(this).val());div.contents().filter(function(){return this.nodeType!==3}).after(function(){return $(this).text()}).remove();$(this).val(div.html())})