Monday, November 25, 2019

phpMyPassion

How To Remove Last Character From A String Using jQuery?


Common problem faced by developers, how to remove last character from a string using jQuery, Here I am going to explain the solution with an example.


var str = '123-4';
alert(str.slice(0, -1));


About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a huge information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :