Ever wanted a getJSON which does a post?
Here it is:
jQuery.extend({
postJSON: function(url, data, callback)
{
$.post(url, data, callback, "json");
}
});jQuery getJSON POST
Ever wanted a getJSON which does a post?
Here it is:
jQuery.extend({
postJSON: function(url, data, callback)
{
$.post(url, data, callback, "json");
}
});출처 - http://kristofmattei.be/2009/10/27/jquery-getjson-post/