Expand DIV view on toggle
I have a simple toggle script which will expand /hide a menu.
How can I expand the height of the parent container if I toggle off the view of my menu?
- <script>
- $(document).ready(function(){
- $( "#route_btn" ).click(function() {
- $( "#silver1" ).toggle( "slow", function() {
- // Animation complete.
- });
- });
- });
- </script>