Remove First Character From A String
In this post, we will see how we can remove first character from a string in JQuery. I hope you will like it.
Consider I have a string like below.
var myString= "&2014";
Now I need to remove & from my string and the output must be “2014”.
So we can do as follows.
var myString= "&2014"; myString=myString.substring(1);
Now myString contains the value of “2014”.
Please see other code snippets here: https://sibeeshpassion.com/category/code-snippets/