Hello everyone, i am facing a problem with Datapicker in datatables
Hello everyone, i am facing a problem with Datapicker in datatables
mroci1
Posts: 1Questions: 1Answers: 0
This is my code,it appears the calendar but when i click a date does not search on that date:
$(document).ready(function () {
$(function () {
$("#datepicker").datepicker({ dateFormat: 'dd/mm/yy' }).val();
});
$('#example thead th').each(function () {
var title = $(this).text();
if (title === "Date")
{
$(this).html('<input type="text" id="datepicker" placeholder="Search ' + title + '" />');
}
else
{
$(this).html('<input type="text" placeholder="Search ' + title + '" />');
}
});
table.columns().every(function () {
var that = this;
$('input', this.header()).on('keyup change', function () {
if (that.search() !== this.value) {
that
.search(this.value)
.draw();
}
});
});
This discussion has been closed.
Answers
Happy to take a look at a test case showing the issue.
Allan