$(document).ready(function(){ //* activate current tab, if any... */ $('a[href="' + window.location.hash + '"]').trigger('click'); });