How to delete last character from a string using jQuery?
How to delete last character from a string for instance in
123-4- when I delete
4 it should display
123- using jQuery.
the negative second parameter is an offset from the last character, so you can use -2 to remove last 2 characters etc