Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Slideup and slidedown in jquery examples in Jquery functions of JQuery Examples
3199 Views
Hints 
slideToggle() is combination of slideUp() and slideDown() functions.

Example: Explain about slideToggle() function.
Example: Explain about slideToggle() function
<html>

<head>
    <title>HTML-JQuery</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

    <script type="text/javascript">
        $(function () {
            $(".one").click(function () {
                $(".two").slideToggle();
            });
        });
    </script>
    <style type="text/css">
        .two {
            display: none;
        }
    </style>
</head>

<body>
    <div class="one">Click here to slide up and slide down the following element</div>
    <div class="two">Slide Up/Slide Down</div>
</body>

</html>
Demo 
Previous Topics
Previous lessons of current book.
Best Lessons of "JQuery Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details