1
Вот мой Javascript код:
$("#gridProcessDetail tbody").on('click', 'tr', function() {
$(this).context.cells.each(function (ind) {
var txt = $(this).html();
});
}
$(this).context.cells
возвращает две ячейки, но он говорит:
html is not is not a function at HTMLTableRowElement.<anonymous> (Invoice:472)
at HTMLTableSectionElement.dispatch (jquery-1.11.3.min.js:4)
at HTMLTableSectionElement.r.handle (jquery-1.11.3.min.js:4)
Почему бы вам не использовать '$ ('' тд, это) .each()'? Вы смешиваете API-интерфейсы jQuery с API-интерфейсами DOM без какой-либо разумной причины. – undefined