Mary
Mary

Reputation: 97

Jquery UI script tag error

<head>
    <title>Mary</title>
    <link href="http://localhost/stylesheet.css" type="text/css" rel="stylesheet">
    <link href="http://localhost/mary/jquery-ui-1.10.3.custom.min.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
    <script type="text/javascript" src="http://localhost/jscript.js"></script>
    <script type="text/javascript" src="http://localhost/jquery-ui-1.10.3.custom.min.js"/>
</head>

I just got done learning about jquery ui and am trying to include it in my very first webpage, but it's not working. I checked all of the links on my server, and they link up to the documentation, but the only way the content shows up when I check the webpage on my server is if I comment out the last script tag. But if I do that, I can't access the jquery ui, right? I'm so confused. I'm so excited to try all of this stuff out, but I can't figure out how to make it work :( Any help is greatly appreciated.

Upvotes: 1

Views: 87

Answers (2)

Steve Bauman
Steve Bauman

Reputation: 8688

karthikr's answer is most likely the problem, but if that doesn't work try referencing the URL hosted by jquery itself.

<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

Upvotes: 1

karthikr
karthikr

Reputation: 99680

Assuming all the static files are properly referenced,

<script type="text/javascript" src="http://localhost/jquery-ui-1.10.3.custom.min.js"/>

should be

<script type="text/javascript" src="http://localhost/jquery-ui-1.10.3.custom.min.js"></script>

Note the end of the script tag /> should be ></script>

Upvotes: 0

Related Questions