Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <title>toggle to use</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script>
        $(document).ready(function () {
            $("button").click(function () {
                $("p").toggle();
            });
        });
    </script>
</head>
<body>
    <button>Toggle</button>
    <p>This is a paragraph with little content.</p>
    <p>This is another small paragraph.</p>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x