jquery validation验证框架怎么用
1个回答
展开全部
Query
验证框架
http://koalaxyq.javaeye.com/blog/556633
Html
代码
<
script
type
="text/javascript"
src
="js/jquery-min.js"></
script
>
<
script
type
="text/javascript"
src
="js/jquery.validate.pack.js"></
script
>
<
script
type
="text/javascript">
$(document).ready(
function
() {
$(
"#textForm"
).validate();
});
</
script
>
<
form
class
="cmxform"
id
="commentForm"
method
="get"
action
="">
Name
<
input
id
="cname"
name
="name"
size
="25"
class
="required"
minlength
="2"
/>
<
input
class
="submit"
type
="submit"
value
="Submit"
/>
</
form
>
此文谨以以上
js
片段开始介绍
jQuery Validation
。
验证从这个方法开始:
validate( [options] )
验证框架
http://koalaxyq.javaeye.com/blog/556633
Html
代码
<
script
type
="text/javascript"
src
="js/jquery-min.js"></
script
>
<
script
type
="text/javascript"
src
="js/jquery.validate.pack.js"></
script
>
<
script
type
="text/javascript">
$(document).ready(
function
() {
$(
"#textForm"
).validate();
});
</
script
>
<
form
class
="cmxform"
id
="commentForm"
method
="get"
action
="">
Name
<
input
id
="cname"
name
="name"
size
="25"
class
="required"
minlength
="2"
/>
<
input
class
="submit"
type
="submit"
value
="Submit"
/>
</
form
>
此文谨以以上
js
片段开始介绍
jQuery Validation
。
验证从这个方法开始:
validate( [options] )
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询