I would like to pull data (string) from a column called "Limit" in a table ("displayTable") in javascript. How do I do that?
var table = document.getElementById('displayTable');
var rowCount = table.rows.length;
for (var i = 1; i < rowCount - 1; i++) {
var row = table.rows[i]["Limit"].ToString();
alert(row);
...
}
use Json & jQuery. It's way easier than oldschool javascript
in this code
data
is a two dimensional array of table dataThis is how I accomplished reading a table in javascript. Basically I drilled down into the rows and then I was able to drill down into the individual cells for each row. This should give you an idea
UPDATED - TESTED SCRIPT