Javascript 使用ParselyJS验证表单
我想知道如何在parsely中验证一个简单的表单,这是我的基本表单电子邮件、用户名、名字、姓氏和密码。我刚刚下载了parsely,看了几个例子,但还是不明白Javascript 使用ParselyJS验证表单,javascript,parsley.js,Javascript,Parsley.js,我想知道如何在parsely中验证一个简单的表单,这是我的基本表单电子邮件、用户名、名字、姓氏和密码。我刚刚下载了parsely,看了几个例子,但还是不明白 <input id='remail' type='text' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; p
<input id='remail' type='text' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; padding: 6px;" />
<input id='rusername' type='text' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; padding: 6px;" />
<input id='rfirstname' type='text' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; padding: 6px;" />
<input id='rlastname' type='text' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; padding: 6px;" />
<input id='rpassword' type='password' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 266px; height: 16px; padding: 6px;" />
<input id='rcpassword' type='password' class='textinput' style="border-radius:5px; color: rgb(170, 170, 170); margin-left: 10px; margin-top: 10px; width: 175px; height: 16px; padding: 6px;" />
你已经看过了吗->请阅读文档并搜索示例,然后再就stackoverflow提出类似的问题——ParselyJS的基本用法在文档中有详细介绍。