Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:17:39+00:00 2026-06-11T03:17:39+00:00

I am pretty new to jQuery. I encountered a problem when referencing to jQuery

  • 0

I am pretty new to jQuery. I encountered a problem when referencing to jQuery in masterpage of my project (you can find part of my masterpage below). I wanted to use datepicker in a page, so I added a set of references (jQuery ui and css) in head above another set of references (for any other jquery throughout my project), but when I ran it, it kept giving me “jQuery undefined” alert.

The interesting thing was if I move the set of refs for datepicker down after the other set (just like the order shown below), it worked properly. I don’t know if its about the order when rendering the page. Any info would be appreciated.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <asp:ContentPlaceHolder ID="TitleContent" runat="server" />
    </title>
    <script type="text/javascript" src="../../Scripts/jquery-1.7.2.min.js"></script>
    <link href="../../Content/Site.css" rel="Stylesheet" type="text/css"/>
    <!--date picker-->
    <script type="text/javascript" src="../../Scripts/jquery-ui-1.8.22.custom.min.js"></script>
    <link href="../../Content/jquery-ui-1.8.22.custom.css" rel="Stylesheet" type="text/css"/>
    <!--date picker-->
</head>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:17:40+00:00Added an answer on June 11, 2026 at 3:17 am

    JavaScript is executed (by default) in the order the script tags are encountered in the DOM – if you load some library which has a dependency before you load its dependency you will get errors (as you discovered)

    See: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#attr-script-async

    There are three possible modes that can be selected using these attributes. If the async attribute is present, then the script will be executed asynchronously, as soon as it is available. If the async attribute is not present but the defer attribute is present, then the script is executed when the page has finished parsing. If neither attribute is present, then the script is fetched and executed immediately, before the user agent continues parsing the page.

    Emphasis mine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to jQuery... so far I'm impressed. But I encountered a situation
Im pretty new to jQuery (since a week) and don't understand why I can't
I am pretty new to jquery/javascript. Can someone please recommend a carousel plugin. So
I'm pretty new with Javascript and jQuery and can't quite figure out settimeout .
I'm pretty new to javascript and jquery, and have run into a problem that
Pretty new to jquery and having a bit of a problem with a function
I'm pretty new to Jquery and Javascript and was am working on a project
I am pretty new to jQuery and I am trying to find the most
I'm pretty new to JQuery, and this is probably not the best use case
I'm pretty new to jQuery and, for my work, I use to take some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.