Jacob Jacob - 1 month ago 10
Javascript Question

How to remove first 3 letters in JQuery?

How can I remove the first three letters of a string in JQuery?

For example: Turn

cat1234
to
1234

Answer

No jQuery needed.

"cat1234".slice(3);

or

"cat1234".substring(3);

or

"cat1234".substr(3);