How to refresh a div content generated by the same php page using jquery
i have a test.php
, that contains a div called refreshdiv
, a button called refreshbutton
and may other div's that display other contents
the content of refreshdiv
div is generated by php
is it possible to reload the contents of the refreshdiv
on clicking refreshbutton
on the same page ie, test.php
here is my work around
<div id="refreshdiv">
<table>
<?php
$rec=mysql_query("select * from user_master");
for($i=0;$i<mysql_fetch_array($rec);$i++)
{
?>
<tr>
<td>
<?php echo mysql_result($rec,$i,'username');?>
</td>
</tr>
<?php } ?>
</table>
</div>
tried using $.get, but didnt get any result