Hello everyone, i am facing a problem with Datapicker in datatables

Hello everyone, i am facing a problem with Datapicker in datatables

mroci1mroci1 Posts: 1Questions: 1Answers: 0
edited January 2018 in Free community support

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();
                }
              });
          });

Answers

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Happy to take a look at a test case showing the issue.

    Allan

This discussion has been closed.