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

  • SEARCH
  • Home
  • 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 8745571
In Process

The Archive Base Latest Questions

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

I have spend over a day searching a solution about this. I ran the

  • 0

I have spend over a day searching a solution about this. I ran the Jquery 1.8.1 and Jquery UI 1.9.1.

The user puts a number in an input field and creates on the fly, dynamic input fields. Those input fields need to have an attached Jquery UI datepicker. And thats the problem.

I write this code and it doesn’t work

function dateinput(){
    console.log('clicked');
    var dateinput = $('.hasDatepicker');
        dateinput.datepicker("option", "dateFormat", 'mm/dd/yy');
        dateinput.datepicker({
            showAnim : 'fold'
        });
    }

The console get the ‘clicked’ ok, so I am sure the DOM is getting everything that is run in this dateinput() function. I also bump in this stackoverflow question that is the same problem but its a bit out to date. I tried everything in this topic and I didn’t see any result.

  • 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-13T12:02:59+00:00Added an answer on June 13, 2026 at 12:02 pm

    Is this what you’re after?

    JsFiddle Here

    HTML

    <input id="numberToCreate" maxlength="1" />
    <input id="addInput" type="button" value="Add Input" />
    <div id="inputs"></div>
    

    jQuery

    $(function(){
        $('#addInput').click(function() {
            var numberToCreate = $('#numberToCreate').val();
            for (var i = 1; i <= numberToCreate; i++)
            {
                $('<input />').datepicker().appendTo('#inputs');
            }
            return false;
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've spent over a day trying to figure this out, I have looked at
I have a text file that I want to send over the network, this
Have spend quite some time to learn Sencha touch, just like an evaluation about
I know this is an old question, but I have spend any hours on
I've spend the whole morning on this and I am absolutely stumped. I have
I have been going over rails scheduling tasks options and stumbled upon this piece
Ok so I have been at this bug all day, and I think I've
Good day, Reading this thread about performance of pattern matching and functions in Mathematica
I have been struggling with this for the entire day now, I hope somebody
I have defined a custom struct which I need to send over to another

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.