I\'m trying to update a database users table. I made an HTML table which contains the data of the users in my database. this HTML table contains 3 columns and in each row t
May be something like the code below will help you to get the required information.
$("button").click(function () {
var $row = $(this).parent().parent(); //tr
var $columns = $row.find('td');
var rowIndex = $row.index();
var values = new Array();
for (var i = 0; i < $columns.length - 1; i++) {
var item = $columns[i];
values.push($(item).children().val());
}
alert(JSON.stringify(values));
});
http://jsfiddle.net/X4mMw/