You could have a hidden field on each row which stores the ID and/or other data needed in a JSON object & use that instead of hacking around with the span tag.
Remove
$('.removeAction').click(function(){
var id = $(this).next().val();
// do something...
});