Uncaught TypeError: Cannot read ajax property from undefined When I try to post data in url
I have created a form to get user feedback, I am just trying to submit the form data in the url, but Im getting this error:
Uncaught TypeError: Cannot read ajax property of undefined
function sendData(){
$.ajax({
url: "www.yashkjhsah.php",
type: "POST",
async: true,
data: $(".contacts_form").serialize(),
dataType: "html",
success: function(data)
{
alert(data);
if(data!="Error in Insert Query!")
{
alert("Thank you for Enquiry we will send answer in your Mail.");
}
else
{
alert("Error while saving the data");
}
}
});
}
+3
user5123500
source
to share
3 answers