Could you refine your selector in the load() method?
For example,
$("#secondHeader").load("/logged-in-content.html #secondHeader > *");
This way, you’re not grabbing the div itself, you’re grabbing its contents.
More Related Contents:
- Jquery version for $(“#submit”).on(“click”, function(){
- Best way to use Google’s hosted jQuery, but fall back to my hosted library on Google fail
- Stop a gif animation onload, on mouseover start the activation
- How to get nth jQuery element
- How can I scroll to a specific location on the page using jquery?
- Detecting attribute change of value of an attribute I made
- jQuery: how to trigger anchor link’s click event
- Add and remove a class on click using jQuery?
- Problems with Google Maps API v3 + jQuery UI Tabs
- Installing jQuery?
- Number nested ordered lists in HTML
- How to change an element’s title attribute using jQuery
- jQuery Ajax request from local filesystem (Windows file:///)
- “How” to save an entire collection in Backbone.js – Backbone.sync or jQuery.ajax?
- Pass parameter between pages using jquery mobile
- Elements with $ in the id can’t be altered in jquery
- Check if all checkboxes are selected
- No response from MediaWiki API using jQuery
- Bootstrap 4 with remote Modal
- jQuery – How to select value by attribute name starts with
- Ignore all hidden div but not one in jQuery validation
- How can I stop “property does not exist on type JQuery” syntax errors when using Typescript?
- How do you trigger autocomplete “select” event manually in jQueryUI?
- jQuery: Making simultaneous ajax requests, is it possible?
- Show/ Hide Table Column with colspan using jQuery
- Get value from hidden field using jQuery
- jQuery autoComplete view all on click?
- Re-attaching jQuery detach();
- How to enforce a “smooth scrolling” rule for mousewheel, jQuery?
- Custom CSS to allow chrome textarea resize smaller than initial state?