$(document).ready(function() {
$('.dogs_showall').click(function() {
$('.dogs_dropdown li').slideToggle();
});
});
.dogs_dropdown li {
display: none;
}
.dogs_dropdown>li:first-child {
display: list-item;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<ul class="dogs_dropdown">
<li>Breed 1 - <a href="#" class="dogs_showall">Show all</a></li>
<li>Breed 2</li>
<li>Breed 3</li>
<li>Breed 4</li>
</ul>
Still having trouble with it. Any suggestions? :)