If you want the ID and value in client side then add
OnClientClick
handler in the button
onclientclick="return getIDAndValue(this);"
Create a Javascript function
function getIDAndValue(obj)
{
var id = obj.id;
var value = obj.value;
return true/false;
}