• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

why doesn't my jquery script run?

Have no comple errors:  
why doesn't my jquery script run?

<%@ Page Title="Home Page" Language="vb"  AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Document</title>
<!-- -->
<script type="text/jacascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
<script type="text/jacascript" src="Scripts/jquery-1.4.1.js"></script>

<script type="text/jacascript">
$("document").ready(function() {
   alert("The Page is ready!");
});
</script>

</head>
 
<body>
 Test
</body>
</html>  
0
westdh
Asked:
westdh
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
some typo error
jacascript

$("document")

corrected :
<%@ Page Title="Home Page" Language="vb"  AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Document</title>
<!-- -->
<script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>

<script type="text/javascript">
$(document).ready(function() {
   alert("The Page is ready!");
});
</script> 

</head>
 
<body> 
 Test
</body>
</html>

Open in new window

0
 
leakim971PluritechnicianCommented:
and you don't need both :
jquery-1.4.1-vsdoc.js
jquery-1.4.1.js

the first one contains intellisense help comments
0
 
westdhAuthor Commented:
hanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now