I have 3 buttons with same id, I need to get each button value when he\'s being clicked.
this also worked if you have multiple element with same id.
$("button#xyz").click(function(){ var xyz = $(this).val(); alert(xyz); });
you can check HERE