heres a small example for you: Fiddle
populate this:
<table id="theTable"></table>
using this:
$(function(){
var _rows=10;
var _body="";
for(i =0;i<_rows;i++){
_body+="<tr>"+
"<td><input type='text' class='text1'></input></td>"+
"<td><input type='text' class='text2'></input></td>"+
"<td><input type='button' class='theButton' value='Click Here'></input></td>"+
"</tr>";
}
$("#theTable").html(_body);
$(".theButton").on("click",function(){
alert("Text1: "+$(".text1",$(this).parent().parent()).val()+", Text2: "+$(".text2",$(this).parent().parent()).val());
});
})