I have a page that contains tabs of information. In some circumstances i need to open with a specific tab active, so i assigned a unique div and class to it and have #reviews appended to the url. The page scrolls correctly to have the tabs in view, but I can't figure out how to open the tab ONLY when #reviews is in the url.
If i add
<script>
$(document).ready(function() {
$(".rTab").trigger('click');
});
</script>
to the div the tab opens on every page load. So, is there a method of checking for a #url to fire the trigger() ?
Thanks