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