The jQuery load()
function does not load to Chrome or Firefox, but it worked in Atom's HTML preview?
How can you set the --allow-from-local-files
option in Google Chrome?
$(document).ready(function() {
$(".test2").click(function() {
$(".test1").load("data.html");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="test2">click here</div>
<div class="test1">
This will disappear after clicking on ....
</div>