How to make simple jquery accordion

December 08, 2013

How to make simple jquery accordion
Code:
<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Accordion - Default functionality</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(function() {
    $( "#accordion" ).accordion();
  });
  </script>

</head>
<body bgcolor="orange">

<div id="accordion" >
  <h3>'A' HOME </h3>
  <div>
    <p>
  First Page.
    </p>
  </div>
  <h3>'B' COMPANY INFORMATION</h3>
  <div>
    <p>
    OUR MISSION
    </p>
  </div>
  <h3>"C"ABOUT US</h3>
  <div>
    <p>
    BRANCHES
    </p>
    <ul>
      <li>celeb one</li>
      <li>celeb two</li>
      <li>celeb three</li>
    </ul>
  </div>
  <h3>"D"CONTUCT US</h3>
  <div>
    <p>
    This is the fourth paragraph.
    </p>
    <p>
    This is the fifth paragraph.
    </p>
  </div>
</div>

Screen Shot:


You Might Also Like

0 comments

Popular Posts

Like us on Facebook

Flickr Images