I am using the ajax() function to send a string to a PHP file.
In case of a success, the PHP file echoes "the validation of the string was successful". But I would also like to send the actual string back to jQuery and put it in a div.
How can send back that string, without having to echo it along with the confirmation message?
Or should I put both messages into a string, send it to jQuery and have jQuery split that string? What's the best way?