I have a series of records with ids assigned to them. I.e.
record1, record2, record3 etc
I'm trying to get the id of the link being clicked using:-
$("a.removeTier").live('click', function() {
var tier = $(this).attr('id').match('/\d+$/');
alert(tier);
});
The variable tier, should only contain the numeric value within the string. Currently, I'm getting null.
Any ideas?