Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function() {
- $('a#faq').click(function() {
- $('div#hidden').toggle();
- return false;
- });
- });
- </script>
- </head>
- <body>
- <a href="#" id="faq">F A Q</a><br />
- <br />
- <div id="hidden">
- Some Questions
- Some Answers
- </div>
- </body>
- -----------------------------------------------------------------------------------------------------------------
- Add style property to div you want to hidden on page load.
- <div id="hidden" style="display:none">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement