var subtbl = $(this).attr('data-counter');
var stunbr = $(this).attr('data-stunbr');
var m = 0;
var checkedlines = new Array();
$.each($("#sub-table"+subtbl+" "+"input:checked"),function (m){
var chk_value = $("#chk_"+stunbr+"_"+m).attr('value');
var txt_value = $("#txt_"+stunbr+"_"+m).attr('value');
//alert("Txt value --->"+ txt_value +" Chk Value --->"+ chk_value);
checkedlines[m] = { STUNBR: stunbr, SNO: chk_value, NAME: txt_value };
m++;
});
How do iattach the "checkedlines" to form request in jquery and send it to php .I mean do we need to use $.ajax can you show in attaching "checkedlines[]" Can we produce this array n Json any method available in Jquery to produce JSON How can i consume that in php if it is a plain array .One more thin How do i Iterate through the "checkedlines[]" array outside of the each loop without using the "var r=0 " variable
var r=0;
$.each(checkedlines,function(r){
alert("ASNURNNBR==>"+checkedlines[r]['STUNBR']+"SEQNO==>"+checkedlines[r]['SNO']+"RCVDATY==>"+checkedlines[r]['NAME']);
r++;
});