jQuery works in example page, but not in other pages
jQuery works perfectly on the example page (
http://www.troop21clayton.org/jquery-1.8.5/), but it wont work on any other pages (e.g.
http://www.troop21clayton.org/site_new/test.port/)
Here's my code:
- <html>
- <head>
- <link rel="StyleSheet" href="indexrc.css" media="screen">
- <title>Test jQuery Dialog | Troop 21 of Clayton</title>
- <script type="text/javascript" src="/jquery-1.8.5/js/jquery-ui-1.8.5.custom.min.js"></script>
- <script type="text/javascript" src="/jquery-1.8.5/js/jquery-1.4.2.min.js"></script>
- <link type="text/css" rel="StyleSheet" href="/jquery-1.8.5/css/custom-theme/jquery-
- ui-1.8.5.custom.css" />
- <script type="text/javascript">
- $(document).ready(function() {
- $("#winPort").dialog({ autoOpen: false });
- });
- </script>
- </head>
- <body>
- <div class="main-container">
- <div class="header"><em>Troop21Clayton.org 2.0</em></div>
- <div class="navbar"><a href="../">Home</a> <a href="./restrict.client/">Contacts</a></div>
- <div class="content"><a onclick="$('#dialog').dialog('open')" href="#">Click Here</a></div>
- <div class="footer"><a href="#">Copyright © Troop 21 of Clayton, Boyscouts of America.
- </a></div>
- <div id="dialog" title="Troop21clayton.org 2.0">Click on the title bar and move it around, resize, or
- click the x in the corner to close it!</div>
- </div>
- </body>
- </html>
What's wrong with it?