Hi
I am getting error on below code
Uncaught TypeError: Cannot set properties of null (setting 'text')
at BindData (BookPendingForReturnDetails:428:61)
at HTMLAnchorElement.onclick
JavaScript
function BindData(e) {
var currentRow = $(e).closest("tr");
var Id = currentRow.find("td:eq(0)").text();
var StudentName = currentRow.find("td:eq(2)").text();
document.getElementById('hdfId').value = Id;
document.getElementById('ltrlStudentName').text = StudentName;
};Thanks

Jignesh KumarRank #91 · 22.9K reputationPosted Oct 12, 2022, 2:53 AM EDT
Hi Ramco,
can you please test this one,
Do you have Literal in this page with id 'ltrlStudentName' ?
function BindData(e) { var currentRow = $(e).closest("tr"); var Id = currentRow.find("td:eq(0)").text(); var StudentName = currentRow.find("td:eq(2)").text(); document.getElementById('hdfId').value = Id; document.getElementById('ltrlStudentName').innerText= StudentName; };