Link to home
Start Free TrialLog in
Avatar of james henderson
james hendersonFlag for United States of America

asked on

jquery doesn't run on local static site

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() {
                        alert('ready');
                $('#TourDate').datepicker({
                    onSelect: function (dateText, inst) { checkDay(dateText); }
                });

            }

        });

        function checkDay(dateText)
        {
                  alert('here');

        }

    </script>

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.
ASKER CERTIFIED SOLUTION
Avatar of Ishaan Rawat
Ishaan Rawat
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of james henderson

ASKER

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