Skip to content

Instantly share code, notes, and snippets.

@zdimaz
Last active March 18, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdimaz/a1c303a0c57cc1a0186a879cfaba6dcd to your computer and use it in GitHub Desktop.
Save zdimaz/a1c303a0c57cc1a0186a879cfaba6dcd to your computer and use it in GitHub Desktop.
ajax simple upload file in html from div
$(document).ready(function(){
if($("#include_header").length){
$("#include_header").load("include/header.html");
};
if($("#include_header").length){
$.get('header.html',function(response){
$('#header').html(response);
});
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment