function decreased(param) {
console.log(param);
$.ajax({
type: "GET",
url: "scripts/closed.php",
data: "name=" + param,
success: console.log('success'),
});
}
I don't know why my function isn't working. The path is correct the param is correct if i type in closed.php?name=param the script there works and in the end after calling the function i get the console log success printed, i really don't understand.