s

$.get get result edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 06 February 2021 | 1680

How to get the result from a get request ajax call using jquery.

Solution 1

var retval = await $.get("/LoggedIn"
console.log(retval);

Solution 2

$.get("/LoggedIn", (data) => { console.log(data); })