SyntaxFix
Write A Post
Hire A Developer
Questions
Are u sure u want to remove only last character. What if the user press backspace from the middle of the word.. Its better to get the value from the field and replace the divs html. On keyup
$("#div").html($("#input").val());