Hi!
I am using the following code for tabs on a site...
$(document).ready(function(){
$('.tab').click(function () {
$('.tabs > li.active').removeClass('active');
$(this).parent().addClass('active');
$('div.tab_contents_container > div.tab_contents_active').removeClass('tab_contents_active');
$(this.rel).addClass('tab_contents_active');
});
});
Is there any way that I can load a specified tab from the url? For example: The default tab is "#tab1" but I want to load "#tab2" when a specified url is requested... basically I want "#tab1" to be default unless a URL like http://example.com/page.html#tab2 is requested... is this possible?