I have a table
from which I want to fetch all the td
and pass their values using an AJAX call. Here is what I attempted, but details are coming through blank.
$('#createData > tbody > tr').each(function(i) {
var rowobj = new Object();
var $tds = $(this).find('td'),
Number = $tds.eq(0).val(),
Quantity = $tds.eq(1).val(),
date = $tds.eq(2).val(),
Value = $tds.eq(3).val(),
Containers = $tds.eq(4).val(),
typeOfContainer = $tds.eq(5).val();
rowobj.Number = Number;
rowobj.Quantity = parseFloat(Quantity);
rowobj.Date = eta;
rowobj.alue = parseFloat(Value);
rowobj.noofContainers = parseInt(Containers);
rowobj.containerType = typeOfContainer;
Details.push(rowobj);
});