TypeError: $.POST is not a function
This is piece of code:
$("form").submit(function (event) event.preventDefault(); name = $("#name").val(); address = $("#address").val(); country = $("#country").val(); $.POST(" route("peoples.store") ", name:name, address:address, country:country, function (data) $("#name").val(""); $("#address").val(""); $("#country").val(""); console.log(data); var tr = "
You are watching: $.post is not a function
I"m assuming that you are using JQuery? If so, then the correct method is:
I think You are using the slim version of jQuery, which doesn"t have AJAX $.post function, can you try that:
Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!
But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Post Your Answer Discard
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.24.40305
See more: Iron Ranger Vs Beckman Vs Wolverine 1000 Mile Vs Red Wing Iron Ranger Vs