I have a table like so for Outbound usage of Pharmacies
Pharmacy Name | Pharmacy ID | Call | SMS | Email | P | Total
------------------------------------------------------------
Test 1 | 123456 | 1 | 2 | 3 | 4 | 10
------------------------------------------------------------
Test 2 | 123457 | 1 | 2 | 3 | 4 | 10
-----------------------------------------------------------
I am trying to export this table to an excel sheet. How would I go about this when clicking a button and passing this data to my controller?
So far I have
$("tr").each(function () {
alert( $("td").text());
});
But it is giving me all the tds.
I would like to be able to store the values of each row into an object.