/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var num = $(this).attr('id').match(/(\d+)/)[1]
URL: http://stackoverflow.com/questions/5940141/get-numeric-part-of-id