Skip to content

Instantly share code, notes, and snippets.

@Frankity
Last active December 2, 2016 17:43
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 Frankity/e697372b48db670311cd02d582c076e4 to your computer and use it in GitHub Desktop.
Save Frankity/e697372b48db670311cd02d582c076e4 to your computer and use it in GitHub Desktop.
<div style="width: 100%;height: 100%" id="modals" class="modal fade" role="dialog">
<div style="width: 100%;height: 100%" id="aws"></div>
</div>
<script type="text/javascript">
$.ajax({
url: './views/test.php',
type: 'get',
data: {videoid: id},
success: function(response) {
$('div#aws').remove();
$('div#modals').html('<div style="width: 100%;height: 100%" id="aws"></div>');
$('div#aws').html(response);
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment