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.

  1. var myString= "&2014";  

Now I need to remove & from my string and the output must be “2014”.

So we can do as follows.

  1. var myString= "&2014";  
  2. myString=myString.substring(1);  

Now myString contains the value of “2014”.

Please see other code snippets here: http://sibeeshpassion.com/category/code-snippets/

Kindest Regards
Sibeesh Venu