以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 表单验证 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=169584) |
-- 作者:13568958298 -- 发布时间:2021/6/22 0:07:00 -- 表单验证 <div class="layui-form-item">
<label class="layui-form-label">金额</label> <div class="layui-input-block"> <input type="number" name="金额" class="layui-input" lay-verify="required" autocomplete="off"> </div> </div> <div class="layui-col-sm5"> <!-- 第2列 --> <div style="color: #FFB800;font-size: 18px; text-align:right;" >**如有明细请分别录入</div> <div class="layui-form-item"> <label class="layui-form-label" style="color: #5FB878">交通费</label> <div class="layui-input-block"> <input type="number" name="交通费" class="layui-input" autocomplete="off"> </div> </div> |
-- 作者:13568958298 -- 发布时间:2021/6/22 0:08:00 -- |
-- 作者:13568958298 -- 发布时间:2021/6/22 0:10:00 -- <div class="layui-form-item"> <label class="layui-form-label">金额</label> <div class="layui-input-block"> <input type="number" name="金额" class="layui-input" lay-verify="required" autocomplete="off"> </div> </div> <div class="layui-col-sm5"> <!-- 第2列 --> <div style="color: #FFB800;font-size: 18px; text-align:right;" >**如有明细请分别录入</div> <div class="layui-form-item"> <label class="layui-form-label" style="color: #5FB878">交通费</label> <div class="layui-input-block"> <input type="number" name="交通费" class="layui-input" autocomplete="off"> </div> </div> <div class="layui-form-item"> <label class="layui-form-label" style="color: #5FB878">伙食费</label> <div class="layui-input-block"> <input type="number" name="伙食费" class="layui-input" autocomplete="off"> </div> </div> </div> 验证交通费、伙食费的和与金额是否一致,不一致则给出提示,不予提交 |
-- 作者:有点蓝 -- 发布时间:2021/6/22 8:37:00 -- 参考:http://www.foxtable.com/mobilehelp/topics/0083.htm |