Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6182213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:09:41+00:00 2026-05-24T01:09:41+00:00

How to refresh a div content generated by the same php page using jquery

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:09:42+00:00Added an answer on May 24, 2026 at 1:09 am

    Take a look at this jsFiddle I put together – it may help.

    I’m making an AJAX call (a POST in this case since it’s just HTML and that’s what jsFiddle supports for HTML requests – but it would be no different for a $.get for you) that gets data and appends it to a table data cell (<td>). The whole page doesn’t update – just the section that I’m targeting — in this case, the <td> cell, which keeps having “hello’s” appended into it.

    I hope this helps. Let me know if you have add’l questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the simple jQuery DIV refresh code. var refreshId = setInterval(function() { $('#refreshdash').load('dashboard.php?cache=');
I'm wondering how to refresh/reload a page (or even specific div) once(!) using jQuery?
I have a div that is generated html via Expression Engine. I'm using ajax
I need to Refresh a Div in Page by Jquery <? if($POST['id']) :?> <script>
I have some AJAX that refreshes my page but also makes the div that
I'm using jquery UI drag-and-drop. It is possible to refresh the div contents when
I have the following code generating content on my site: <div class=content id=links> <?php
I have navigation menu. When clicked, only page content div should be updated from
HI,I am using a div content to push in jquery dialog.After opening for the
My page has a div where the content is written by a PHP script.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.