Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nikunj001's avatar

bootstrap clone datepicker 'start date' and 'end date' is not working in javascript?

hi friends i have used .datepicker in my project . and i can use date picker in my clone object also .i can successfully use .datepicker to select date in my clone .But when i am trying to set start date and end date of my clone text box .datepicker i am facing difficulty. need experts guidance.

0 likes
2 replies
Braunson's avatar

Is the js library/plugin included? Is it accessible from the developer tool console? Do you have any errors in the developer console of your browser?

When you say clone text box, are you loading the page, then cloning the text box that's suppose to be a date picker? If so when you clone the textbox, you need to re-initialize the datepicker in js for that element.

nikunj001's avatar

yes, all the js files are included .it is accessible from the console. yes, I have the error which says datepicker is not the function. while cloning I am not reloading the page.if you want i can send you the code . just mention your email id

Please or to participate in this conversation.