How can I redirect from a different page to a page that has hidden sections which can only be visible once they are clicked?
I have two pages. One page has 4 full viewheight sections (3 hidden at all times) and other is just a page with content. The former page has a sidebar that makes the sections visible on click. I want to redirect from the second (content) page to one of those sections but I feel the I am unable to as that section on the first page needs to be clicked in order to make active.
//Function for switching tabs on the first page
var navigate = function(e) {
var currentAttrValue = $(this).attr('href');
// Show/Hide Tabs
$(currentAttrValue).addClass('active').fadeIn().siblings().hide().removeClass('active');
// // Change/remove current tab to active
$(this).addClass('highlighted').siblings().removeClass('highlighted');
e.preventDefault();
}
The section I am trying to access has a 'display:none' property by default. I am looking for something that upon clicking from the source page makes the 'display: active' for the particular section on the target page and redirects. Sorry if I didn't frame my question better earlier.