now ajax is in PLGMTLS object as a method
This commit is contained in:
@@ -5,7 +5,8 @@ sendButton.addEventListener('click', () => {
|
||||
const inputValue = inputElement.value;
|
||||
console.log("inputValue:");
|
||||
console.log(inputValue);
|
||||
PLGNTLS_ajax(inputValue, 'get_data')
|
||||
console.log(PLGNTLS_data);
|
||||
PLGNTLS_data.ajax(inputValue, 'get_data')
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
console.log("dataaa: ");
|
||||
|
||||
Reference in New Issue
Block a user