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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:26:49+00:00 2026-05-29T05:26:49+00:00

In my project, I have a textbox for meetingdate, i have given id =

  • 0

In my project, I have a textbox for meetingdate, i have given id = meetingdate1 to this textbox. if one want to add more meetings date then there is button for that. After clicking this button, new textbox added below to previous textbox, say meetingdate2, meetingdate3 and so on… Now I want to add datepicker textbox instead of textbox, so I have used jquery for this purpose. Its work for 1st textbox whose id = meetingdate1 but datepicker functionality not getting in other textboxes whose id = meetingdate2, id= meetingdate3 and so on…

the jquery code is:

        $("#addButton").live("click", function () {

        if(counter_ldates>10){
            alert("Only 10 dates allowed");
            return false;
        }   

        var newTextBoxDiv = $(document.createElement('div')).attr("id", 'LdateDiv' + counter_ldates);
            newTextBoxDiv.html('<label>Date #'+ counter_ldates + ' : </label>' +
            '<input type="text" name="meetingdate' + counter_ldates + 
            '" id="meetingdate' + counter_ldates +
            '" class="ldatestextbox" value="" style="width: 75px" >');

        newTextBoxDiv.appendTo("#LdatesGroup");

        counter_ldates++;
        $('#ldates_cnt').attr('value', counter_ldates);
    });
    $( "#meetingdate1" ).datepicker();
$( "#meetingdate2" ).datepicker();
$( "#meetingdate3" ).datepicker();
$( "#meetingdate4" ).datepicker();
$( "#meetingdate5" ).datepicker();

how can i solve this issue of datepicker?

  • 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-05-29T05:26:50+00:00Added an answer on May 29, 2026 at 5:26 am

    Try initializing the datepicker after appending the new input:

    newTextBoxDiv.appendTo("#LdatesGroup").find("input").datepicker();
    

    What you’re doing is, trying to initialize the datepicker on elements don’t exist (yet).

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

Sidebar

Related Questions

Now this is a weird one We have a project where we are reading
I have used the following template in my project: <DataTemplate x:Key=textBoxDataTemplate> <TextBox Name=textBox ToolTip={Binding
I want to apply NTFS-Search to our project. Our project have to find the
I have project in Dropbox and two running laptops: one with Ubuntu and one
In my current project, I have a textbox where the user will enter some
I have created a silverlight 5 project and added a textbox control to a
I have a new project. I drop a textbox control on it. I open
I have created a Setup Project for my Project. This project connects to a
I have made a simple implementation of INotifyDataErrorInfo in a WPF 4.5 project. This
I am working on a project where I have to validate the given SMTP

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.