$(".button-toggle").click(function(e){
$(this).parents.find('#second').toggle();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="first">
<a href="#" class="buttong-toggle">
<button>Show/Hide</button>
</a>
</div>
<div id="second">
larger section
</div>
It's clear from the demonstration in the fiddle that this script is not functioning as intended. I am currently trying to resolve the issue of DOM traversal when using 'this' event, which seems unable to locate the #second ID.