jqueru check if last character in string and remove 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));
});