A php file is being called via AJAX. Instead of sending anything back to AJAX function, I want to echo/print data to the HTML DOM from the PHP file. But anything that I would "echo" goes back to the AJAX function, even after removing the success function from AJAX request.
Since Ajax is the caller the echo Php will be return the result to the javascrpt.
You could return the php-path to the Ajax. Then load the php-path using the jquery load method. OR Return a json to the Ajax, and then create the html dynamically.