I found the code to open/close the div when I click a certain button. Now I also want to make not only the div open/close but the open/close button change from a down arrow to an up arrow.
This is what I have so far excuse me if my post is not correct as this is my first post.
The image is height = 60px and width = 30px. The up arrow is on one half and down arrow is on the other half.
<style>
.content_toggle {
background: url(toggle-btn.png);
background-color: rgba(0, 0, 0, 0.9);
position: absolute;
cursor: pointer;
bottom: 62px;
left: 850px;
height: 30px;
width: 30px;
}
</style>
<body>
<div class="content_toggle" style="display: block;"></div>
<script>
$("div.content_toggle").click(function () {
$("div.content").slideToggle("slow");
});
</script>
<div class="content">content, content, content</div>
</body>