I am just starting to use Twitter Bootstrap which works pretty fine.
However I am trying to add some custom jquery code.
<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.2.js'></script>
<script type='text/javascript' src="dist/js/bootstrap.min.js"/>
<script type='text/javascript'>
$(document).ready(function(){
$( "#link" ).click(function() {
alert( "Handler for .click() called." );
});
});
</script>
Somehow the JS alert does not get fired.
Any idea what's wrong here?
The related #link tag looks as follows:
<p><a id="link" class="btn btn-default" href="#" role="button">View details</a></p>