I have created a variable in php which when clicked i would like it to populate another table which some data.
I'm guessing i use AJAX and Jquery but what function do i look at?
e.g. if i did something like this. I would like to click $variable1 and only when clicked appear in table1 in .
Does anybody have a link to the function or the few lines of code that can do this? Thanks
<?php
$variable1 = "text";
echo $variable1;
?>
<div id="table1">
<table>
<tr>
<td>variable1 will go here when clicked</td>