Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/438.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用ParselyJS验证表单_Javascript_Parsley.js - Fatal编程技术网

Javascript 使用ParselyJS验证表单

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

我想知道如何在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; 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的基本用法在文档中有详细介绍。