1
Answer

Call a web api

Rohan

Rohan

2y
1k
1

Hello everyone Please let me know how to display data in the HTML table I have created table.This is my table structure 

 Type Frequency Status Action

This is my code


$(function () {
    var urls = url + "api/xyz/user";
    $.ajax({
        type: 'GET',
        url: urls,
        "data": {
            "userID": 1220,
            "isActive": 1
        },
        dataType: 'json',
     
        success: function (response) {
            console.log(response)
            $('#table_Name').append('<tr><td> Notific </tr></td>');
            
        },
        error: function (error) {
            $.notify("There has been some error, please try again later !", "error");
        }
    });
})

 

Answers (1)