Right now, when I type this, you can view it below the editor. I would like to do something similar. How does stack overflow do this?
They use an HTML editor called MarkD Markdown Editor.
$(function(){ // whenever the text in the editor box changes: $("#editorTextArea").change(function(){ // add the text to the preview box below // this certainly involves some formatting/marking up of the text // but this is good enough for illustrative purposes $("#previewBox").val(this.value); }); });