摘要: 这节我们还可以通过直接设置DropDownList属性来设置jQuery validation插件的校验规则和提示信息。先看界面代码:<form id="form1" runat="server"> <div align="center"> <fieldset style="width: 350px; height: 200px;"> <table border="0" cellpadding="3" cellspacing=&quo 阅读全文
posted @ 2012-01-31 23:23 PyCoder 阅读(729) 评论(0) 推荐(1) 编辑
摘要: 这节介绍jQuery validation插件一个新的校验规则属性rangelength,通过数组方式赋值。这里我们举例校验ListBox两个规则:•校验必选项•选择范围在0~4项界面代码:<form id="form1" runat="server"> <div align="center"> <fieldset style="width: 350px; height: 200px;"> <table border="0" cellpadding=&q 阅读全文
posted @ 2012-01-31 23:13 PyCoder 阅读(686) 评论(0) 推荐(1) 编辑
摘要: 上一节已经介绍过控件CustomValidator的使用方法,下面直接看代码。界面代码:<form id="form1" runat="server"> <div align="center"> <fieldset style="width: 350px; height: 200px;"> <table border="0" cellpadding="3" cellspacing="3"> <tr> 阅读全文
posted @ 2012-01-31 23:05 PyCoder 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 这节我们要讲下如何通过控件CustomValidator来校验CheckBoxList,客户端校验代码通过jQuery实现。首先看下界面代码:<form id="form1" runat="server"> <div align="center"> <fieldset style="width: 350px; height: 200px;"> <table border="0" cellpadding="3" cellspacing= 阅读全文
posted @ 2012-01-31 23:00 PyCoder 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 这节主要讲如何用jQuery校验表单时间范围,时间控件用到了jQuery-ui,下载地址:http://jqueryui.com/download,Theme选择Sunny界面代码: <form id="form1" runat="server"> <div align="center"> <fieldset style="width: 400px; height: 150px"> <table border="0" cellpadding=" 阅读全文
posted @ 2012-01-31 22:34 PyCoder 阅读(652) 评论(1) 推荐(0) 编辑