Donnie Ashok Donnie Ashok - 1 year ago 283
jQuery Question

Uncaught TypeError: $.post is not a function

I am getting this error in 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

Answer Source

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

Use this one:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download