/ Published in: jQuery
URL: http://stackoverflow.com/questions/5940141/get-numeric-part-of-id
Expand |
Embed | Plain Text
var num = $(this).attr('id').match(/(\d+)/)[1]
You need to login to post a comment.
URL: http://stackoverflow.com/questions/5940141/get-numeric-part-of-id
var num = $(this).attr('id').match(/(\d+)/)[1]
You need to login to post a comment.