jQuery scrip to make H5 toggable


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript" src="/operascroce/misc/ui/ui.core.js"></script>
  2. <script type="text/javascript" src="/operascroce/misc/ui/ui.accordion.js"></script>
  3. <p>
  4. <link rel="stylesheet" href="/operascroce/misc/demos.css" type="text/css" />
  5. <script type="text/javascript">
  6. jQuery(document).ready(function(){
  7. $("#accordion h5").click(function() {
  8. $(this).next().toggle("slow");
  9. }).next().hide();
  10. });
  11. </script></p>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.