Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

$.post() in jQuery

Send POST bodies with $.post for forms and create actions.

$.post() in jQuery — a practical guide to jQuery $.post with clear examples you can reuse in real projects.

jQuery Tutorial Series (68/101). Prefer one article? Read the complete jQuery tutorial.

Short description

For JSON APIs, set contentType and JSON.stringify as needed.

$.post

$.post('/api/comments', { body: 'Nice post' }, function (res) {
  console.log(res);
}, 'json');

Leave a reply

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