Search results

Set the placeholder

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
@Html.EJS().DatePicker("datepicker").Placeholder("Enter date").Render()