get the value after writing using $().html() code example Example: how to right text with js document.write("text");