jquery remove last code example
Example 1: remove last character from string jquery
$(document).ready(function() {
var chrt = 'wlearnsmart';
alert("Delete last character here... - " + chrt.slice(0, -1));
});
Example 2: remove last char - jquery
"1234".slice(0,-1)