jquery.validate.js简介 记录

本文介绍了一个使用jQuery.validate.js进行表单验证的具体实例。通过一个包含网站名称、标题及图片地址字段的表单,展示了如何设置必填项及URL格式验证,并通过按钮触发验证过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


 

jquery.validate.js简介 

http://wolfgangkiefer.blog.163.com/blog/static/8626550320091122216330/

 

在console后台的 使用摘要

 

<form id="show" name="show" method="post" action="${applicationScope.urlPf}/console/admin/connect/act/add"    >
 <table width="90%"  border="0" align="center">
		<tr>
		<td>网站名称:</td> 
		<td><input  name="appName" class="required" title="[网站名称]为必填项,不能为空值!" size="50" type="text"/><font color="red">*</font> </td> 
		</tr>
		
		 
	 	<tr>
		<td>标题:</td>
		<td><input  name="title" class="required" title="[标题]为必填项,不能为空值!" size="50" type="text"/><font color="red">*</font> </td>
		</tr>
		
		<tr>
		<td>图片地址:</td>		
		<td><input  name="picUrl" class="required url" title="[图片地址]为必填项,且必须是合法的URL地址!" size="50" type="text"/><font color="red">*</font></td>		
		</tr>
		
		 
		 
		
		<tr>
		<td colspan="2">	
		<input type="hidden" name="vtype" value="60">	
		<input type="button" value="添加" class="input-button" onclick="doSaveShow()"/> 
		<input type="reset" class="input-button" value="清空"/>
		</td>
		</tr>
	</table>	 
</form>

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值