DataTables incompatible with jQuery UI DatePicker in TFOOT
DataTables incompatible with jQuery UI DatePicker in TFOOT
![shylion](https://secure.gravatar.com/avatar/296d1848b83f6ab21dd8e49d54acbae6/?default=https%3A%2F%2Fvanillicon.com%2F296d1848b83f6ab21dd8e49d54acbae6_200.png&rating=g&size=120)
When you have a datepicker input in table footer, it doesn't allow to choose a date, because of duplicate id error.
When you .draw() a DataTable, whole TFOOT gets duplicated along with datepicker inputs.
Worked around by finding and deleting duplicate input, like:
after any .draw()
.find("DIV.dataTables_sizing").find("INPUT.hasDatepicker").remove();
This discussion has been closed.
Replies
Is there any better workaround?
Found a better workaround:
It is also incompatible with radio inputs, when you preselect a value on table creation.