Fix jQuery Ajax contentType issue. When sending an ajax request, jquery default…
Fix jQuery Ajax contentType issue. When sending an ajax request, jquery default contenttype is application/x-www-form-urlencoded; charset=UTF-8. So here sending ?? in the ajax request, it gets encoded in strange manner. So add content-Type to application/json; charset=UTF-8 when sending a json ajax request.
Showing
Please
register
or
sign in
to comment