How can I return values from a PHP page via Ajax and display them separately? Ex.: I have a PHP page in which I have the return values:
<?php
echo $a;
echo $b;
echo $c;
?>
Currently I can determine via Jquery that they are displayed in a given DIV, but that all appear together (in the same place). I would like to know if I would have to determine how "$ a" will be displayed in a given DIV, and the other variables in other DIVs. How?
My purpose is: Access the database, bring values and set in a modal. Currently I can already call this MODAL and fill her BODY with the data from the server. However, I do not want to display these values only in BODY. I need to display $ a on the HEADER, $ b on the BODY and $ c on the FOOTER of this MODAL.
Can you do just that?
Thank you in advance.