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 8527887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:40:49+00:00 2026-06-11T08:40:49+00:00

In my page i have a div id=result and this div already contain data.

  • 0

In my page i have a div id=”result” and this div already contain data.

Then i have a ajax call to retrieve loop data.

$.each(data, function(name, value) {
                document.write(value.email);
              });
// i tried  .html("#result")  but not working.

How can i place these loop data into the div id=”result” and replaced the previous content.

  • 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-06-11T08:40:50+00:00Added an answer on June 11, 2026 at 8:40 am
    var html = '';
    $.each(data, function(name, value) {
        html += value.email;
    });
    
    $('#result').html( html );
    

    I think, as you’re loop over data, it seems you’ve multiple emeil addressess. So you can make a string of all loop data (email) and then set that as html() to #request, instead of appending to #result within loop again and again.

    .html() will replace previous data and update that #request content with new result.

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

Sidebar

Related Questions

I have this on my page: <div id=result class=thumbholder><img src=img/thumbs/thumb01.png alt=thumb /></div> CSS: .thumbholder{
I have a div that I would like to reposition each time the page
I have a div like this <section class=item_container> <article class=item> <h2>Page Title</h2> <p><a class=delete_page
I have this page that displays pictures in a div. I have jquery cycle
I have a div that I would like to refresh on page load then
I have on page div: <div id=here_table></div> and in jquery: for(i=0;i<3;i++){ $('#here_table').append( 'result' +
Basically if I have a div loaded onto a page with a data-test attribute
I have on my page ( page1.php ) a div called result that updates
in my html page I have div with css: padding: 0px; color: rgb(51, 51,
At the top of my page I have a div that spans the page,

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.