What would be the cleanest way of doing this that would work in both IE and firefox.
My string looks like this: sometext-20202
Now the \'sometext\' and the
How I would do this:
// function you can use: function getSecondPart(str) { return str.split('-')[1]; } // use the function: alert(getSecondPart("sometext-20202"));