title: asp.net mvc and jQuery with "Microsoft JScript runtime error: Object expected"
body: <p>I've got an asp.net mvc view with at the end the following javascript code</p>
  
  <pre><code>
  &#60;script language="javascript" type="text/javascript"&#62;
        $(document).ready(
              function () {
                alert("This is a test");
              });
    &#60;/script&#62;
  </code></pre>
  
  <p>&nbsp;</p>
  
  <p>The alert doesn't show when loading the page.
  I've got the following error: "Microsoft JScript runtime error: Object expected"</p>
  
  <p>&nbsp;</p>
  
  <p>This is the  section of the Site.Master:</p>
  
  <pre><code>
    &#60;link href="../../Content/Site.css" rel="stylesheet" type="text/css" /&#62;
    &#60;link href="../../Content/Controls.css" rel="stylesheet" type="text/css" /&#62;
    &#60;script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"&#62;&#60;/script&#62;
    &#60;script src="../../Scripts/jquery-ui-1.8.6.custom.min.js" type="text/javascript"&#62;&#60;/script&#62;
    &#60;link href="../../Content/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" /&#62;
    &#60;script src="../../Scripts/jquery.ui.datepicker-nl.js" type="text/javascript"&#62;&#60;/script&#62;
  </code></pre>
  
  <p>&nbsp;</p>
  
  <p>Does anyone has an idea why I got this error?
  Even when I delete the alert, I've got this error.</p>
  
  <p>thanks,</p>
  
  <p>Filip</p>