简体   繁体   English

html 5验证不适用于jQuery步骤

[英]html 5 validation is not working on jQuery-steps

I have 4 Step 我有4个步骤

我有四个步骤

i put validation on first_name like below. 我将验证放在first_name上,如下所示。

 <label for="firstname" id="firstname">First Name</label>
 <input type="text" id="firstname" name="il_first_name" required>

Final Step 最后一步

最后一步 at the end on click submit using j query-steps i want to check html 5 validators to check validation of entire form (step 1 to last step) 最后使用j查询步骤单击提交,我想检查html 5验证程序以检查整个表单的验证(步骤1至最后一步)

it wont work because at the time of finish button its given as hidden element 它不会起作用,因为在完成按钮时,它作为隐藏元素提供

try doing it at each step in the form 尝试在表单的每个步骤中执行此操作

or else try this required = "required" also change your same id name for label and input 否则,请尝试使用此required = "required"还可以更改标签和输入的相同ID名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM