Hello guys,
does anyone of you know how to set the autofocus property on @Html.TextBoxFor ?
Should look something like this
@Html.TextBoxFor(m => m.User, new {@PlaceHolder = "User name", @Autofocus })
But that doesn't work though.
BRPatrik
@Html.TextBoxFor(x => x.User, new { placeholder = "Username", autofocus = ""})
Hello guys,
does anyone of you know how to set the autofocus property on @Html.TextBoxFor ?
Should look something like this
But that doesn't work though.
BR
Patrik