Rohan

Rohan

  • NA
  • 1.4k
  • 118k

Call a web api

Jul 11 2022 9:55 AM

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)