Wednesday, 21 August 2013

How to reading part of string in javascript

How to reading part of string in javascript

I have a string btnHome. How can I remove btn and only get Home from it in
javascript / jQuery?
I used slice like str.slice(3, -1) but it gives me Hom whereas I need Home.

No comments:

Post a Comment