how to slide toggle on slide toggle
how can i put this:
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- p { width:400px; }
- </style>
- <script src="http://code.jquery.com/jquery-latest.js"></script>
- </head>
- <body>
- <h4> Hiya </h4>
-
- <p>
- This is the paragraph to end all paragraphs. You
- should feel to have seen such a paragraph in
- your life. Congratulations!
- </p>
- <script>
- $("h4").click(function () {
- $("p").slideToggle("slow");
- });
- </script>
-
- </body>
- </html>
on this:
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- p { background:#dad;
- font-weight:bold;
- font-size:16px; }
- </style>
- <script src="http://code.jquery.com/jquery-latest.js"></script>
- </head>
- <body>
- <button>Toggle 'em</button>
-
- <p>Hiya</p>
- $("button").click(function () {<script>
- $("p").toggle("slow");
- });
- </script>
-
- </body>
- </html>
thenx for who will help me,
i realy need that!