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
Post a Comment