On 15 Giu, 14:55, "Ariel Flesler" <[EMAIL PROTECTED]> wrote:
> var n = +"forum-list-1".slice(-1);   ;-)

I think this won't work if the number has 2 or more digits.
The split('-').pop() way works better imho :)

Reply via email to