locked
Code Debug RRS feed

  • Question

  • User1979860870 posted

    Hi

      How i can debug below code in Chrome

    function loadData() {
        $.ajax({
            url: "/Location/List",
            type: "GET",
            contentType: "application/json;charset=utf-8",
            dataType: "json",
            success: function (result) {
                var html = '';
                $.each(result, function (key, item) {
                    html += '<tr>';
                    html += '<td>' + item.Id + '</td>';
                    html += '<td>' + item.Description + '</td>';
                    html += '<td><a href="#" onclick="return getbyID(' + item.Id + ')">Edit</a> | <a href="#" onclick=Delete(' + item.Id + ')">Delete</a></td>';
                    html += '</tr>';
                });
                $('.tbody').html(html);
            },
            error: function (errormessage) {
                alert(item.Id);
                alert(errormessage.responseText);
            }
        });
    }

    Thanks

    Saturday, May 15, 2021 4:16 PM

Answers