Search results

Set the Placeholder in ASP.NET MVC DateRangePicker control

17 Sep 2021 / 1 minute to read

The following example demonstrates how to set placeholder in the DateRangePicker control.

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

razor
Copied to clipboard
@Html.EJS().DateRangePicker("daterangepicker").Placeholder("Choose a range").Render()