I always want to sync the dataType with the returnformat. I think making them both json would actually work, and also leaving dataType out altogether might work since jQuery uses an "intelligent guess".
But if the function is returning a plain ole number, then I think the dataType should be text.
I always want to sync the dataType with the returnformat. I think making them both json would actually work, and also leaving dataType out altogether might work since jQuery uses an "intelligent guess". But if the function is returning a plain ole number, then I think the dataType should be text.