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.
[js]
var myString= "&2014";
[/js]
Now I need to remove & from my string and the output must be “2014”.
So we can do as follows.
[js]
var myString= "&2014";
myString=myString.substring(1);
[/js]
Now myString contains the value of “2014”.
Please see other code snippets here: http://sibeeshpassion.com/category/code-snippets/
Kindest Regards
Sibeesh Venu