在表单输入完成后,提交到后端
后端校验错误返回错误信息后:
在错误字段(password)上显示错误信息,
myForm.form('add prompt', 'password', '密码错误!');

必须给表单设置inline; true才能生效,否则只会看到框框是红色,看不到错位信息


在表单输入完成后,提交到后端
后端校验错误返回错误信息后:
在错误字段(password)上显示错误信息,
myForm.form('add prompt', 'password', '密码错误!');
必须给表单设置inline; true才能生效,否则只会看到框框是红色,看不到错位信息
本文标题:Semantic UI表单提交error message显示问题
本文链接:https://www.haomeiwen.com/subject/obvwbftx.html
网友评论