I am trying to make a home page with the Bootstrap CMS. I currently have everything working apart from when the user comes onto the website I want a Modal to appear as soon as they go onto the website.
The current code I have for the Modal is:
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
Now, this is all fine,
The JavaScript:
<script type="text/javascript">
$(window).load(function(){
$('#myModal').modal('show');
});
</script>
As you should know with them together should make the Modal appear automaticlly but it's not.
Can anyone help?