Posted By

timarney on 10/19/11


Tagged

javascript


Versions (?)

get numeric part of ID


 / Published in: jQuery
 

URL: http://stackoverflow.com/questions/5940141/get-numeric-part-of-id

  1. var num = $(this).attr('id').match(/(\d+)/)[1]

Report this snippet  

You need to login to post a comment.