Hello,
I have a faq’s page and I want the user to be able to click on a link from another page and then he is redirected to the faq’s page and open a specific toggle from that link.
So for example:
I have a link on the Home page:
<href=”#anchor1″>
And the Faq’s Page looks like this:
Question 1 = <id=”anchor1″>
Question 2 = <id=”anchor2″>
Question 3 = <id=”anchor3″>
Question 4 = <id=”anchor4″>
All with closed state. If the user clicks on the link from the home page I want to open the Faq’s page and open the “Question 1″
I hope that this is not too much confusing.
I’m trying to insert a RawJs row with the script:
`<script type=”text/javascript”>
(function($){
$(window).load(function(){
var et_hash = window.location.hash;
if(window.location.hash) {
$( ‘.toggle-title’ + et_hash )
.addClass(‘toggle-title opened’)
}
});
})(jQuery)
</script>
Is this going to work?
My website is still offline so I can’t give you credentials.
Best Regards,
João Santos