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

  • Home
  • SEARCH
  • 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 have a system that uses a meta refresh to a logout page, which
I'm working on a div (parent) that has two other divs (menu and content)
I have a php file which is called every X second in ajax to
When a user hits Refresh on their browser, it reloads the page but keeps
I'm finding that hitting the Refresh button on my browser will temporarily screw up
I've set up an AJAX page refresh with setInterval . From time to time,
The back button just causes my page to refresh. Is there a way around
I've got two input boxes in a div, I want to hide that div
How often does Akamai refresh cache? We use Akamai to cache frequently accessed files.
What is the best way to refresh a DataGridView when you update an underlying

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.