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 8739955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:02:48+00:00 2026-06-13T11:02:48+00:00

I am trying to get bootstrap datepicker to work but it does not even

  • 0

I am trying to get bootstrap datepicker to work but it does not even show up.
http://www.eyecon.ro/bootstrap-datepicker/

<link href="~/Css/datepicker.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.8.1.js" type="text/javascript"></script>
<script src="~/Scripts/bootstrap-datepicker.js" type="text/javascript"></script>
<script type="text/javascript">
    $("#datepicker").datepicker();
</script>

<input id="datepicker" value="10/22/2011" />

I am using bootstrap 2.1.1

  • 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-13T11:02:49+00:00Added an answer on June 13, 2026 at 11:02 am

    It looks like you’re trying to initialize a datepicker when there’s no #datepicker element in DOM yet (the corresponding input follows <script> element, not vice versa).

    As $('#datepicker') will still return a jQuery-wrapped object (not null!), no error will be thrown.

    To solve this, either make this call when DOM is loaded:

    $(function() {
      $('#datepicker').datepicker();
    });
    

    or move this script into very end of <body> element.

    I’d choose the first option; moving all the DOM-ready actions into the same $(function() { ... }); wrapper as well.

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

Sidebar

Related Questions

I'm trying to get twitter bootstrap's .popover working within a .submit jquery event but
I have been trying to get Twitter Bootstrap btn-group with dropdown to work for
I'm trying to get a Bootstrap dropdown working with my Jade layout. But actually
I am trying to get a simple bootstrap's modal sample to work, I follow
I am trying to get bootstrap's rows to work inside of a hero-unit. I
http://site2.example.com/ Error=> Notice: Trying to get property of non-object in /var/www/site/application/layouts/scripts/layout.phtml on line 19
I'm trying to get the Bootstrap 2 popovers to: A) work with dynamically generated
I am trying to get carousel working but it is not. When I click
I am trying to use Twitter Bootstrap for GWT and get the same nice
I am trying get Struts 2 and Tiles to work and I am using

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.