超级简单的jquery表单验证
超级简单的jquery表单验证
验证表单内容是否填写,email格式是否正确
XML/HTML Code
- <div class="container">
- <form id="testform">
- <div class="field">
- <label for="full_name">Full Name</label>
- <input type="text" name="full_name" id="full_name" class="required">
- <div class="val-message">Please enter your first name</div>
- </div>
- <div class="field">
- <label for="web_address">Your Web Address</label>
- <input type="url" name="web_address" id="web_address" class="required">
- <div class="val-message">Please enter a valid URL</div>
- </div>
- <div class="field">
- <label for="email_address">Email Address</label>
- <input type="email" name="email_address" id="email_address" class="email">
- <div class="val-message">Please enter a valid email address</div>
- </div>
- <div class="field">
- <label for="your_message">Your Message</label>
- <textarea name="your_message" id="your_message" class="required"></textarea>
- <div class="val-message">Please enter a valid email address</div>
- </div>
- <button type="submit">Submit</button>
- <button type="reset">Clear</button>
- </form>
- </div>
相关推荐
周公周金桥 2020-09-06
大象从不倒下 2020-07-31
AlisaClass 2020-07-19
MaureenChen 2020-04-21
xingguanghai 2020-03-13
teresalxm 2020-02-18
木四小哥 2013-05-14
SoShellon 2013-06-01
Simagle 2013-05-31
羽化大刀Chrome 2013-05-31
waterv 2020-01-08
LutosX 2013-07-29
vanturman 2013-06-27
wutongyuq 2013-04-12
luoqu 2013-04-10
today0 2020-09-22
89520292 2020-09-18
bigname 2020-08-25