I work on jQuery data table i face issue request date not display search related as date picker
it display as input text
search is working on all columns and request date also as input text .
but only issue I can't solve it request date display as input text
desired result is to display request date as date picker and enable search
request date search working success but on header
I need to display it on row above or before header
why i try as below
Request No
Employee No
Employee Name
Request Date
Reason
@foreach (var item in Model)
{
@Html.DisplayFor(modelItem => item.RequestNo)
@Html.DisplayFor(modelItem => item.EmpID)
@Html.DisplayFor(modelItem => item.EmpName)
@Html.DisplayFor(modelItem => item.ResignationSubmissionDate)
@Html.DisplayFor(modelItem => item.Reason)
}
Request No
Employee No
Employee Name
Request Date
Reason

Jayraj ChhayaPosted Nov 17, 2023, 1:36 PM
Hello @ahmed salah
The issue is that the
datepickerInputis being created as an input of type "text" instead of "date".To fix this bug, you need to change the
typeattribute of thedatepickerInputto "date" as shown below:Request Date Display as Date Picker
To display the request date as a date picker and enable search, you can modify the code as follows: