Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-22-2012, 01:17 PM   PM User | #1
stepy
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
stepy is an unknown quantity at this point
Can't get jquery to work

hi all,

I wanted to start and learn jquery but i can't even get it to work :s.
I followed a tutorial and did the exact same thing but it doesn't work for me.
It is probably something stupid but I don't see it.

Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Index</title>
<link href="styletest.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery-1.8.0.min.js"</script>
<script type="text/javascript">
$(document).ready(function(){

alert("yay");
});
</script>
</head>
stepy is offline   Reply With Quote
Old 08-22-2012, 01:31 PM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
Did you download the latest "jquery-1.8.0.min.js" and put it into the same folder as your HTML page?

You forgot the closing > bracket for the first <script> tag (right before </script>)

If you don't want to download a copy of jquery you can as well use one of the many CDN providers for it, for example
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
stepy (08-22-2012)
Old 08-22-2012, 01:36 PM   PM User | #3
stepy
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
stepy is an unknown quantity at this point
It was the bracket.. ty
stepy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:41 AM.


Advertisement
Log in to turn off these ads.