I am using jquery datetimepicker with the next version
JQuery v1.7.2 JQuery UI - v1.10.3 jQuery timepicker addon V1.3
In the module, I dynamically create an input field by clicking "+" , and also linking the datetimepicker to those inputs that are created dynamically, and also deletes this input field by clicking "-".
My dynamic input fields are always created as shown below:
datepickerfrom_1_1 datepickerfrom_1_2 datepickerfrom_1_3 datepickerfrom_1_4 datepickerfrom_1_5 . . .
I am binding a datetimepicker using jQuery as shown below:
$(window).load(function() { $('body').on('focus', 'input[id^="datepickerfrom"]', function() {
script(datetimepicker) works fine when creating dynamic input.
Question: I add a dynamic input field by clicking "+" , then I removed some of the inputs by clicking "-" , again I add some dynamic input fields. The second time created an input field that does not call / bind datetimepicker properly.
What could be the problem? How can I solve it?
source share