Search results

Set the Placeholder in ASP.NET MVC DatePicker control

20 Apr 2021 / 1 minute to read

The following example demonstrates how to set placholder in the DatePicker control.

Using placeholder you can display a short hint in the input element.

razor
Copied to clipboard
@Html.EJS().DatePicker("datepicker").Placeholder("Enter date").Render()