Donnie Ashok Donnie Ashok - 2 months ago 42x
Javascript Question

Uncaught TypeError: $.post is not a function : Error in Chrome

I am getting this error in Chrome Console:

Uncaught TypeError: $.post is not a function

for this piece of code:

<script type="text/javascript">
$('#cl_submit').click(function() { //#cl_submit is a button
$.post("process/cookie.php", $("#cl").serialize(), function(response) { //#cl is a form
return false;
</script> <!-- popup included -->

I just couldn't find anything wrong in this. Why is this not working, any clues?

is working fine.

Seems like only the post function is not getting recognised.

I am using


You are using the slim version of jQuery, which doesn't have AJAX(in your case the $.post() function).

Use this one: