【发布时间】:2014-08-14 23:28:26
【问题描述】:
<form class="form-asd" role="form">
<h2 class="form-signin-heading">login</h2><hr />
<label class="control-label" for="username">Username</label>
<input class="form-control" type="email" required="" placeholder="username"data-error="enter username"></input>
<label class="control-label" for="username">password</label>
<input class="form-control" type="password" required=" " placeholder="Password"></input>
<label class="checkbox"></label>
<button class="btn btn-lg btn-primary " type="submit">submit</button>
</form>
我们如何将要求字段“请填写此字段”的弹出框的默认消息更改为“请输入用户名”
【问题讨论】:
-
This codepen 正是这样做的。
-
另见changing the language of error message in required field in html5 contact form,几乎相同的问题,唯一真正的区别是这个问题提到了引导程序。
标签: html css twitter-bootstrap