I have 3 buttons with same id, I need to get each button value when he\'s being clicked.
If you have same id in a container you can use on() to access each element for every event
$("#containers").on("click","#xyz",function(){ alert($(this).val()) })
XYZ1 XYZ2 XYZ3
and info about on() is here