$.get get result Edit

Murugan Andezuthu Dharmaratnam | 06 February 2021 | 387

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); })