Skip to main content

Search and Top Navigation

Ticket #6232: 6232.js

File 6232.js, 1.0 KB (added by winthrope, October 30, 2010 03:04PM UTC)

Elaboration of nested accordion behavior

<!DOCTYPE html>
  <meta charset="utf-8">
  <link class="jsbin" href="" rel="stylesheet" type="text/css">
  <script class="jsbin" src=""></script>
  <script class="jsbin" src=""></script>

  <div id="accordion-1">
    <h3><a href="#">1</a></h3>
      <div id="accordion-1a">
        <h3><a href="#">1.a</a></h3>
        <div>1.a content</div>
        <h3><a href="#">1.b</a></h3>
        <div>1.b content</div>
    <h3><a href="#">2</a></h3>
      <div id="accordion-2">
        <h3><a href="#">2.a</a></h3>
        <div>2.a content</div>
        <h3><a href="#">2.b</a></h3>
        <div>2.b content</div>

Download in other formats:

Original Format