matreece
asked on
Jquery graphic and text swap
Hi, I am building a page which uses Jquery slidetoggle to reveal a map when clicked. The text on the box initially says 'View the interactive map' and has an arrow pointing downwards.
What I want is when the map is visible (once clicked), the words to then change to 'Close the interactive map' and the arrow to change upwards.
My page is here - www.soundyoucansee.com/map
Can anyone help?
What I want is when the map is visible (once clicked), the words to then change to 'Close the interactive map' and the arrow to change upwards.
My page is here - www.soundyoucansee.com/map
Can anyone help?
<script type="text/javascript">
$(function() {
$("#toggle").click(function() {
$("#toggleMap").slideToggle("slow");
});
});
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is great. Worked 1st time with no problems.
Open in new window