如何在下拉列表中放置占位符?我已经不得不搜索,但我仍然找不到解决方案。
HTML
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Room</span>
@Html.DropDownList("ID_Room", null, htmlAttributes: new { @class = "focus-input100" })
<span class="focus-input100"></span>
</div>
@Html.DropDownList("ID_Room", null, "placeholder" , new { @class = "focus-input100" })
还。你不需要htmlAttributes
。只要有new {}
就好
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句