Hey guys,
So I'm new to JavaScript etc. and at the moment I'm attempting to add a alert box which should fade in and out on pressing of the close button. The alert box appears however when clicking the cross nothing happens.
I'm using Bootstrap as a framework for this and have no idea how to get this to work.
http://twitter.github.com/bootstrap/...pt.html#alerts
So I've added the appropriate HTML code for the box to show however I really have no clue as to how I link in the JS files as it seems to fail whenever I try to do so.
Any ideas on where/what should be done in regards to the JavaScript?
Current code section:
Code:
<div class="bs-docs-example">
<div class="alert alert-block alert-error fade in">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 class="alert-heading">Oh snap! You got an error!</h4>
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
<p>
<a class="btn btn-danger" href="#">Take this action</a> <a class="btn" href="#">Or do this</a>
</p>
</div>
Just the JavaScript I need help with :S.