Here is a sample of my JQuery code:
$(document).ready(function() {
$(".neverseen img").click(function() {
$(".neverseen p").slideToggle("slow");
return false;
});
});
Below is the corresponding HTML:
<div class="neverseen">
<h1>Title to always show</h1>
<a href="#" id="show">
<img src="images/demo/arrow.png" width="40" height="40">
</a>
<p>Text to toggle hide/show</p>
</div>
I am trying to add another image called arrow2.png that will replace the first arrow when hidden content activates or make the current arrow turn 180 degrees. I have attempted various Jquery methods but have not found success.
Additionally, I would like to have a visible border-bottom that remains constant and moves with the hidden content. The border should be positioned below the title when hidden and below the content when visible. However, all my attempts have resulted in double borders. Any suggestions on how to achieve this would be greatly appreciated.