Hide text when div is visible
Hi all,
I got this function:
- <script type="text/javascript">
- $(document).ready(function(){
- $(".slidingDiv").hide();
- $("#testshow").show();
-
- $('#testshow').click(function(){
- $(".slidingDiv").slideToggle();
- });
- });
- </script>
and:
- <a href="#" class="show_hide" id="testshow">Show</a>
- <div class="slidingDiv"> Div is open <a href="#" id="testhide">hide</a></div>
How can i hide the text "Show" from the a href when the slidingDiv is open?
Thanks!
Bart