Skip to content
Advertisement

The addrow datepicker does not appear, how to solve it

how to solve it

The addrow datepicker does not appear

I am already doing an addrow using the datepicker, why does the datepicker not appear when adding rows

So on the first row the datepicker runs, but if you click the add button, the second row and so on the datepicker doesn’t work.

JavaScript

this is html

JavaScript

this is javascript

When adding rows, the datepicker is not active

JavaScript

help me to solve it

Advertisement

Answer

You need to initialize your .datepicker for the added rows .So , for that just use $(".input_fields_wrap_jadwal tr:last .datepicker").. this will get last tr added and then initialize your datepicker inside that tr .

Demo Code :

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement