I wrote a script using jQuery and AJAX today, and I get some errors...
The script:
function changeAdmin(id) { $(document).ready(function() { $(\'#ta
You need to send an application/json header via PHP , like this:
application/json
header('Content-type: application/json');
That's because jQuery sends an Accept header (application/json, text/javascript), and this is the cause of parseerror triggered by jqXHR.
application/json, text/javascript
parseerror
jqXHR