jquery doesn't run on local static site

Posted on 2013-06-02
Last Modified: 2013-06-02
I have a static web site on iis 7 on local machine.  I have downoaded and added jquery and jquery ui.  I have added the following to my index page:

    <link href='css/themes/smoothness/jquery-ui-1.10.3.custom.css' rel='stylesheet' type='text/css' />
    <link href='css/demos.css' rel='stylesheet' type='text/css' />

      <link href='css/wdgt.css' rel='stylesheet' type='text/css' />

    <script src='js/jquery-1.9.1.js' type='text/javascript'></script>
    <script src='js/ui/jquery.ui.core.js' type='text/javascript'></script>
    <script src='js/ui/jquery.ui.widget.js' type='text/javascript'></script>
    <script src='js/ui/jquery.ui.datepicker.js' type='text/javascript'></script>

obviously, I'm trying to use the datepicker.

I also have this in the head section:
    <script type='text/javascript'>
        $(document).ready(function() {
                    onSelect: function (dateText, inst) { checkDay(dateText); }



        function checkDay(dateText)



nothing here works.  it appears that the first document.ready() is never called.  all pathing has been checked several times.  it doesn't work in IE 10 or chrome.  i'm totally stumped here and need help to show me the error of my ways!!

BTW, I can't ref the jquery stuff at google or any other external site.  It's not an option.
Question by:dhenderson12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

Ishaan Rawat earned 500 total points
ID: 39214461
Try this...

   $(document).ready(function() {
                    onSelect: function (dateText, inst) { checkDay(dateText); }



        function checkDay(dateText)


Open in new window


Author Comment

ID: 39214482
aaarrrrrggggghhhhhhhh!!!!!  I hate extra curly braces!!  thanks for loaning your eyes.

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Google Maps with Webforms 1 29
How can I do Unit Testing with Session ? 1 23
Rotate images for Web Page 11 28
Json and ajax 1 22
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question