<form class="ui large form">
<div class="ui stacked segment">
<div class="field">
<div class="ui left icon input">
<i class="user icon"></i>
<input type="text" name="email" placeholder="E-mail address">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="lock icon"></i>
<input type="password" name="password" placeholder="Password">
</div>
</div>
<div class="ui fluid large teal submit button">Login</div>
</div>
<div class="ui error message" id="sdgajsgdkjhaskj"></div>
</form>
是这样的,我照着官方给的实例做的登录界面,这里有对输入信息的检查
password: {
identifier: 'password',
rules: [
{
type: 'empty',
prompt: 'Please enter your password'
},
{
type: 'length[6]',
prompt: 'Your password must be at least 6 characters'
}
]
}
这些检查不过过的话,会在<div class="ui error message"></div>这里显示
我是用ajax做的提交,想在提交后更新这个error message
但是没找到办法
直接对这个div使用正常的手段也没有作用
关掉了,没啥太大意义