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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:27:58+00:00 2026-05-26T06:27:58+00:00

I know that Jquery.LOAD is supposed to replace all the content of a div,

  • 0

I know that Jquery.LOAD is supposed to replace all the content of a div, but can I perhaps .append a page instead of .load a page (or some function like .append where I can load an external page inside a div)? I have some headers than I don’t want replaced that reside in said div.

Right now I am using the onClose event in a Fancybox to load a page back into a div with the class “heriyah”, how could I use that with .get, .ajax, or some other function??

EDIT: Okay, so I added this to my fancybox, and it appears that append is not going to work after all because it adds to what is already loaded rather than refreshing the DIV. Sorry if this is confusing, but I have PHP looping through the database and making appends for the data, so I want the data to be refreshed on Fancybox close which works with .load, but that deletes my content headers already in the DOM (which is weird).

  • 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-26T06:27:59+00:00Added an answer on May 26, 2026 at 6:27 am

    You can use append with Jquery get,

     $.get("URL",null,function (data){
              $('#content') .html(data);      
         });
    

    http://api.jquery.com/jQuery.get/

    EDIT,

    Then place the content in another sub div and replace it like this,

    <div id="yourDiv">
    //your headers here..
       <div id="content">
    
        </div>
    
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that uses jquery.slideup and jquery.slidedown How can i know that div
I know that the jQuery .load() function has a problem: You can't retrieve pages
I know that jQuery.extend can be used to add by own custom methods to
I know that jQuery, for example, can do animation of sorts. I also know
I know that the live() event handles event bubbling different than all other jQuery
I know from here that I can pass an ignore option in the jQuery.validate
I am using JQuery to load content into a div element and everything is
I know that using $(window).load() the code executes after everything's loaded. But it doesn't
I know that jQuery has .on() and .delegate() methods, but these require the event
I'm using jQuery.load to load in some content but for SEO and for JavaScript-disabled

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.