Importing an element from another URL into an HTML file -


let's have element in foo.html. how can import , embed in html file?

have tried using jquery .load ?

so in another.html have:

<div id="place-to-embed-element"></div>  <script>     $( "#place-to-embed-element" ).load( "foo.html #imported-id" ); </script> 

hope helps!


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -