function ajaxCheck(){
var inpUs = $("#user").val();
$.post(
"./inpCheck.php",
{ user : inpUs },
function(data) { // here is the point
if (data.length > 0) {
$("#spanUser").html(data);
}
}
)
}
This checks if a user already exists, and it works, but instead of $.post("./inpCheck.php", I want to refer to a specific part (function) of that file ?
Because, on the same file I want to write code for another inputs.
That’s not possible, what you can do is use
switchin php, likejs part
and in inpCheck.php