HTML
CSS
JavaScript
Vue
React
Python
PHP
Java
.Net
Java9手册
PHP手册
CSS3手册
jQuery手册
源代码
在线运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery validation 插件 - ThemeRolldered 实例</title> <link rel="stylesheet" media="screen" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css"> <style>body { font-size: 62.5%; } label { display: inline-block; width: 100px; } legend { padding: 0.5em; } fieldset fieldset label { display: block; } #commentForm { width: 500px; } #commentForm label { width: 250px; } #commentForm label.error, #commentForm button.submit { margin-left: 253px; } #signupForm { width: 670px; } #signupForm label.error { margin-left: 10px; width: auto; display: inline; } #newsletter_topics label.error { display: none; margin-left: 103px; } </style> </head> <body> <form class="cmxform" id="commentForm" method="get" action=""> <fieldset class="ui-widget ui-widget-content ui-corner-all"> <legend class="ui-widget ui-widget-header ui-corner-all">请提供您的名字、电子邮件地址(不会被公布)和评论</legend> <p> <label for="cname">请提供您的名字、电子邮件地址(不会被公布)和评论</label> <input id="cname" name="name" class="ui-widget-content" minlength="2" required type="text"> <p> <label for="cemail">E-Mail(必填)</label> <input id="cemail" name="email" class="ui-widget-content" type="email" required> </p> <p> <label for="curl">E-Mail(必填)</label> <input id="curl" name="url" class="ui-widget-content" value="" type="url"> </p> <p> <label for="ccomment">您的评论(必填)</label> <textarea id="ccomment" name="comment" class="ui-widget-content" required>
提交
验证一个完整的表单
名字
姓氏
用户名
密码
确认密码
Email
请同意我们的条款
我希望收到简讯
主题(至少选择两个)- 注:当未选择简讯时隐藏该项,但此处为了演示所以可见
Marketflash
Latest fuzz
Mailing list digester
请选择至少两个您感兴趣的主题。
提交
动行结果