I would like to know how to do automatic automatic when starting the index page?
I would like to open one modal index that appeared on the screen, what should I change in bootstrap 3 to get this effect?
The modal onload window on an open page.
Thanks for helping the guys.
I have done the following:
Am I doing something wrong?
<script type="text/javascript">
$( document ).ready( function() {
$( '#teste' ).modal( 'toggle' );
});
</script>
<div class="modal fade in" id="teste" 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>
source
share