what is wrong in with my script. it throws error message table.rows[i] is undefined. iam new to jquery thanks in advance :)
update: sorry for the lack of info, error occurs in this line "table.rows[i].cells[3].onclick"
$(document).ready(function () {
var index, table = document.getElementById('resultset');
for (var i = 1; i < table.rows.length; i++) {
table.rows[i].cells[3].onclick = function () {
$.ajax({
type: 'POST',
url: 'Getdetail',
datatype: "json",
data: {
mydata: table.rows[i].cells[0]
},
success: function (data) {
alert(data);
}
});
};
}
});