Hi,
I am loading a Html table through jquery ajax. In this table each row has a check box . when i click the check box i want to get all the details in the row. but i could not iterate through the table.
when i use
$("#civilBillTable1 tr[class="+row+"]" ).each(function(){});
works perfectly, but the table is not loaded through jquery ajax
if i use below code, it will not work
$('input.chkAddItem').live('click',function(){
var itemId,description,unit,rate;
$("#civilBillTable1").live()('each',function(){ // the table is loading through Ajax
alert("h");
description=$(this).find("td[class=2]").html();
unit=$(this).find("td[class=3]").html();
rate=$(this).find("td[class=4]").html();
alert(itemId+" "+unit+" "+rate);
});
});
please help me...