Accordion on my own


My code work perfectly on code academy. My issue is when I try these exercises on my own local drive. Please help me get this going using an index.html file as well as a script.js file.

<!DOCTYPE html>
  <title>My Title</title>
  <link rel='stylesheet' type='text/css' href=''/>
        <script type='text/javascript' src='script.js'></script>
        <script src=""></script>
    <div id="mainContent">
        <h1>This is an According Example</h1>           
    <div id="menu">
        <h3><a href="#">Heading for first sentence</a></h3>
        <p>This is the first sentence.</p>
        <h3><a href="#">Heading for second sentence</a></h3>            
        <p>This is the second sentence.</p>
        <h3><a href="#">Heading for third sentence</a></h3>
        <p>This is the third sentence.</p>

here the js file


What's wrong with this code? It just shows up as a plain html page.
I just wanna practice......:confused:


jquery-ui is required for accordion, you forgot to include it:

 <script src=""></script>


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.