Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.6k

Error - UnCaught reference

Oct 12 2022 6:38 AM

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

<script type="text/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;
        };
    </script>

Thanks


Answers (1)