From the following markup.
Somewhere Somewher
As long as the preceding text always remains the same you can just use the substring method to get the number.
$(this).attr('id').substring(5)