I need to use datepicker on an EditorFor field.
My code for the view is:
@Html.Label(\"birthDate\",\"birthDate
EditorFor accept a class for me
@Html.EditorFor(model => model.Birthday, new { htmlAttributes = new { @class = "datepicker",@Name="birthday",@PlaceHolder = "mm/dd/yyyy" } })
Html markup
class="datepicker text-box single-line"
The Class is work.