Jquery UI Implementation

+1 Kumi Festus · November 12, 2014
I don't know what I am doing wrong.
I always have difficulty implementing the jquery ui to my web page. Sometimes it works and sometimes it doesn't. I don't know what's wrong.
Can someone help me with any advice?

This is how it looks
<!doctype html>
<html>
 <head>
  <title>Welcome To Coding Institution</title>
  <link type="text/css" href="stylesheet.css" rel="stylesheet"/> //external css
  <link type="text/css" href="jqui/jquery-ui.min.css" rel="stylesheet"/>
  <link type="text/css" href="jqui/jquery-ui.theme.min.css" rel="stylesheet"/>
  </head>
  <body>
    <div id="accordion">
    <h1>Names</h1>
    <div>Kumi Festsu,Frank John,Greg Mcoy</div>
    </div>
    <button id="button">Hide</button>
    <input type="text" id="date" name="date"/>
    
   <script type="text/javascript" src="jqui/jquery-ui.min.js"></script>
   <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
   <script type="text/javascript" src="js/script.js"></script> //external javascript file
  </body>
</html>


Thanks

Post a Reply

Replies

Oldest  Newest  Rating
0 Phillip Drake · November 12, 2014
The main issue I see  right now is that you need to switch places between the main jquery script and the jquery ui script.  jQuery should load before jQuery ui:


<!doctype html>
<html>
<head>
<title>Welcome To Coding Institution</title>
<link type="text/css" href="stylesheet.css" rel="stylesheet"/> //external css
<link type="text/css" href="jqui/jquery-ui.min.css" rel="stylesheet"/>
<link type="text/css" href="jqui/jquery-ui.theme.min.css" rel="stylesheet"/>
</head>
<body>
<div id="accordion">
<h1>Names</h1>
<div>Kumi Festsu,Frank John,Greg Mcoy</div>
</div>
<button id="button">Hide</button>
<input type="text" id="date" name="date"/>

<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>  <!--  Must load jquery first -->
<script type="text/javascript" src="jqui/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/script.js"></script> //external javascript file
</body>
</html>
0 Kumi Festus · November 13, 2014
Thanks man,
let try it out.
  • 1

Javascript

106,948 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators