jquery get number from id

var id = $("div").attr('id').replace(/button/, '');

Leave a Comment