Associate
- Joined
- 7 Nov 2004
- Posts
- 1,755
- Location
- Southampton/Oxford
<!doctype html>
<html lang="eng">
<head>
<meta charset="utf-8">
<title>jQuery Practice</title>
</head>
<body>
<p onclick="$(this).hide();">this is TESTING text</p>
<script type="text/javascript" src="js/jquery.js"</script>
</body>
</html>
So I'm learning new things all the time and jQuery is one of em but some to a snag that's bugging me! That's the code used in TheNewBoston tutorials I've been following, now what's supposed to happen is once you have refreshed the page, click on the text and text disappears BUT not for me, nothing happens, am I missing something small or what?
<html lang="eng">
<head>
<meta charset="utf-8">
<title>jQuery Practice</title>
</head>
<body>
<p onclick="$(this).hide();">this is TESTING text</p>
<script type="text/javascript" src="js/jquery.js"</script>
</body>
</html>
So I'm learning new things all the time and jQuery is one of em but some to a snag that's bugging me! That's the code used in TheNewBoston tutorials I've been following, now what's supposed to happen is once you have refreshed the page, click on the text and text disappears BUT not for me, nothing happens, am I missing something small or what?
