Can someone give me and example of how I can use window.location.hash for adding to the end of the url when I click on a drop-down content area I created? Here is the code I have so far...
jQuery:
$('.dropdown').click(function(){
if($(this).hasClass('active')){
$(this).removeClass('active');
$(this).next('.dropdown_content').slideUp(300);
}else{
$(this).addClass('active');
$(this).next('.dropdown_content').slideDown(300);
}
});
HTML:
<div class="dropdown_wrapper">
<h3 class="dropdown">Title of Dropdown<span></span></h3>
<div class="hidden dropdown_content">
<p>Content</p>
</div>
</div>
What I want is for when a dropdown-content window is open to have something added to the url so that when you copy a link and send it to someone, it will already have that particular drop-down open.
This is my first time ever using this so the more detail the better if you can! And if you need more details from me I'll provide them!
Thanks!