Last active
March 18, 2019 14:37
-
-
Save zdimaz/a1c303a0c57cc1a0186a879cfaba6dcd to your computer and use it in GitHub Desktop.
ajax simple upload file in html from div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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