On my jQuery ajax function, I output the data returned from a PHP script like this:
jQuery(this).html(data);
The PHP function which returns the data contains:
echo 'Please do this again.';
return;
By some reason, it outputs as:
Please do this again.0
So it adds a 0
at the end. Why does this happen and what can I do to fix it?