jqQuery Toggle with class?
- <body>
-
- <h3 class="panel-button">Toggle 'em</h3>
- <div class="panel-content" style="display: none">Hiya<br>
- Such interesting text, eh?</div>
-
-
- <script>
- $( "h3" ).click(function() {
- $( "panel-content" ).toggle( "slow" );
- });
- </script>
Thats my code (without including jQuery in head. It don't work yet,