I have simple Ajax request, but for some reason it gives some error. I don't have a clue what this error means:
TypeError: Object function bound(var_args) { return func.apply(thisObject, args.concat(slice(arguments))); } has no method 'ajax'
It's trying to access PHP function where it gets data.
Here is the ajax request itself:
$.ajax({
type: 'POST',
url: 'http://me.mydomain.com/get-ajax.php',
data: {
'action': 'request',
'id': 314
},
dataType: 'json',
success: function(data) {
console.log(data['post']);
}
});