Category Archives: HTML5

Extend jQuery with postJSON requests

jQuery getJSON alternative for POST requests:

jQuery.extend({
  postJSON: function( url, data, callback) {
    return jQuery.post(url, data, callback, "json");
  }
});