jQuery – TypeError: post data is null – Fix

jQuery – TypeError: post data is null – Fix

If you ever come across a jquery error that says: TypeError: postdata is null, that just means about what it says, no data has been posted and jquery is not able to determine which data to deal with when you make a call to $.post() or $.ajax() functions

the way to fix that you need to check that data parameter, whether there are some manual variables you defined in your script or you’re serializing a form out there, check if the the id of the form is right and if the html markup is correct.

That’s about it! just another quick tip for those who probably came across this error especially if you were a jQuery fan than chances that you’ve seen such an issue are pretty high, so that’s how to fix it, if you have any questions please drop me a line in the comment box, like and share if you found this article to be useful, thanks!

Abdelkader Soudani

About Abdelkader Soudani

Abdelkader Soudani is the Founder and Director of Sproweb International, He is also a web developer/designer who specializes in front and back end development, Iphone and Android development, marketing and video production. If you'd like to connect with him then head over to the contact page or his profile on Google Plus.

One comment on “jQuery – TypeError: post data is null – Fix

  1. Luz says:

    Keep on working, great job!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>