Handy script, whenever you click an element with a class called .button it will alert the name and value of that element.
Or try this
var emailaddress = $('.changeme').text();
You could even swap the button text when you click by using this method.
Last resort!
var clickedon = $(this).children('.tablebutton').attr('value');
alert (clickedon);
Take a look at this also Get the id, value,name,html of element after click function












