HI WELCOME TO KANSIRIS

How to delete last character from a string using jQuery?

Leave a Comment
You can also try this in plain javascript
"1234".slice(0,-1)
the negative second parameter is an offset from the last character, so you can use -2 to remove last 2 characters etc

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.