MVC4 input field placeholder

后端 未结 10 1259
北恋
北恋 2020-11-30 02:00

Does MVC4 by default support placeholders for generated input fields? I didn\'t found anything so I am trying to implement my own but unfortunately

10条回答
  •  旧巷少年郎
    2020-11-30 02:12

    Try this:

    @Html.TextbBoxFor(x=>x.Email,new { @placeholder=@viewBag.email}
    

    If this possible or else what could be the way

提交回复
热议问题