I have a DIV with some characters. How can I remove the last character from the text with each click on the DIV itself?
DIV
If you wanted to delete the first character of the text every click you could use substring. e.g.:
$("#textDiv").click(function(){ $(this).html($(this).text().substring(1)); });