$(document).ready(function() { //FOR MENU var url = window.location; $("#content ul.navbar-nav a").each(function(){ if($(this).prop("href")==url){ $(this).parent().addClass("active"); $(this).append($('').text('(current)')) } }); //$("#marquee ul").liScroll(); /* MODAL */ $('#myModal').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) // Button that triggered the modal var recipient = button.data('title') // Extract info from data-* attributes var targetUrl = button.data('url') // Extract info from data-* attributes // If necessary, you could initiate an AJAX request here (and then do the updating in a callback). // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead. var modal = $(this) modal.find('.modal-title').text(recipient) modal.find('.modal-body').append($('