Home » Jquery » php – ajax get function from dynamic url in this cell-Exceptionshub

php – ajax get function from dynamic url in this cell-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I have a PHP dynamically generated html table with values. As of now, the table cells td do not yet have an id or name as it is quite raw. They only have values like

<td>some_content</td>

some_content should now be used for an ajax get value, as I would like to replace some_content with the remote content (jquery get) (http://domain.tld/script.php?var=<< td content >>)

The content of remote url will only be plain text, no html, csv or json; most probably numbers (price) or single words.

Or do you have any other suggestions how to get remote dynamic data from a dynamic URL, depending on cell values. So far my curent PHP code creates table cells with variables $x and $y and $z as string. I can easily change the PHP code that creates the table, but i do not have any idea how i compine PHP echo processing and jquery remote content.

Thanks for any suggestions or solutions.

How to&Answer: