let data {};
data['username'] = username;
data['password'] = password;
$.ajax({
type: "POST",
url: "...",
data: JSON.stringify(data),
dataType: 'json',
success: function(response){
// falan filan
}
});
let data {};
data['username'] = username;
data['password'] = password;
$.ajax({
type: "POST",
url: "...",
data: JSON.stringify(data),
dataType: 'json',
success: function(response){
// falan filan
}
});