I'm using bootstrap 1.4.0 and jquery 1.7.2. I'm trying to create a modal window with fading background. The modal window should be loaded using javascript function.
Here's the code I have:
<!-- Modal -->
<div id="error-dialog" class="modal hide fade">
<div class="modal-body">
<h1 class="exp-heading">Error</h1>
<p class="exp-para pad-btm"> {$meta.message}</p>
<!-- apps go here -->
<div class="clear"></div>
<!-- apps end here -->
</div>
<div class="modal-footer" align="center"><a href="#" data-controls-modal-close="error-dialog" ><img src="images/cancel_btn.png" alt="" border="0" align="middle" /></a> </div>
</div>
<script language="Javascript">
$('#error-dialog').modal('show');
</script>
The modal is showing but the background is not fading in. The CSS file is the default one 1.4.0/bootstrap.css