jQuery表单步骤流程导航js代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery表单步骤流程导航js代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery表单步骤流程导航js代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery表单步骤流程导航</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function one() {
	if (confirm("确定提交?")) {
		$("#one").hide();
		$("#two").show();
		$("#grxx").attr("class","current_prev");
		$("#zjxx").attr("class","current");
	}
}

function two() {
	if (confirm("确定提交?")) {
		$("#two").hide();
		$("#three").show();

		$("#grxx").attr("class","done");
		$("#zjxx").attr("class","current_prev");
		$("#qzxx").attr("class","current");
	}
}

function three() {
	if (confirm("确定提交?")) {
		$("#three").hide();
		$("#four").show();

		$("#grxx").attr("class","done");
		$("#zjxx").attr("class","done");
		$("#qzxx").attr("class","current_prev");
		$("#qzfs").attr("class","current");
	}
}

function reone() {
	if (confirm("确定返回?")) {
		$("#one").show();
		$("#two").hide();
		$("#grxx").attr("class","current");
		$("#zjxx").attr("class","");
	}
}
function retwo() {
	if (confirm("确定返回?")) {
		$("#three").hide();
		$("#two").show();
		$("#grxx").attr("class","current_prev");
		$("#zjxx").attr("class","current");
		$("#qzxx").attr("class","");
	}
}
function rethree() {
	if (confirm("确定返回?")) {
		$("#four").hide();
		$("#three").show();
		$("#grxx").attr("class","done");
		$("#zjxx").attr("class","current_prev");
		$("#qzxx").attr("class","current");
		$("#qzfs").attr("class","last");
	}
}
</script>

<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}

.formbox{width:488px;margin:40px auto;}
.formcon{padding:10px 0;border:solid 1px #ddd}
.formcon table input{width:200px;}
.formcon table td{padding:5px;line-height:24px;}
/* flow_steps */
.flow_steps{height:23px;overflow:hidden;}
.flow_steps li{float:left;height:23px;padding:0 40px 0 30px;line-height:23px;text-align:center;background:url(img/barbg.png) no-repeat 100% 0 #E4E4E4;font-weight:bold;}
.flow_steps li.done{background-position:100% -46px;background-color:#FFEDA2;}
.flow_steps li.current_prev{background-position:100% -23px;background-color:#FFEDA2;}
.flow_steps li.current{color:#fff;background-color:#990D1B;}
.flow_steps li#qzfs.current,.flow_steps li.last{background-image:none;}
</style>

</head>
<body>

<div class="formbox">
	<div class="flow_steps">
		<ul>
			<li id="grxx" class="current">个人信息</li>
			<li id="zjxx" >证件信息</li>
			<li id="qzxx">签注信息</li>
			<li id="qzfs" class="last">取证方式</li>
		</ul>
	</div>
	<div class="formcon">
		<div id="one">
			<table align="center">
				<tr>
					<td align="right" width="140px">户口所在地:</td>
					<td><input class="pwdTrigger" type="text"	placeholder="请输入户口所在地" /></td>
				</tr>
				<tr>
					<td align="right">中文姓:</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入中文姓" /></td>
				</tr>
				<tr>
					<td align="right">中文名:</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入中文名" /></td>
				</tr>
				<tr>
					<td align="right">身份证号:</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入身份证号码" /></td>
				</tr>
				<tr>
					<td></td>
					<td><button type="button" onclick="one()">提交</button></td>
				</tr>
			</table>
		</div>
		<div id="two" style="display:none">
			<table align="center">
				<tr>
					<td align="right" width="140px">通行证号</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入证件号码" /></td>
				</tr>
				<tr>
					<td align="right">有效日期至</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入证件号码" /></td>
				</tr>
				<tr>
					<td align="right">联系电话</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输联系电话,建议是手机号码" /></td>
				</tr>
				<tr>
					<td></td> 
					<td><button type="button" onclick="two()">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" onclick="reone()">上一步</button></td>
				</tr>
			</table>
		</div>
		<div id="three" style="display:none">
			<table align="center">
				<tr>
					<td align="right" width="140px">签注类别</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入签注类别" /></td>
				</tr>
				<tr>
					<td align="right">前往地</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入前往地" /></td>
				</tr>
				<tr>
					<td align="right">签证种类</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入签注种类" /></td>
				</tr>
				<tr>
					<td></td> 
					<td><button type="button" onclick="three()">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" onclick="retwo()">上一步</button></td>
				</tr>
			</table>
		</div>
		<div id="four" style="display:none">
			<table align="center">
				<tr>
					<td align="right" width="140px">取证方式</td>
					<td><input class="pwdTrigger" type="text" placeholder="请输入取证方式" /></td>
				</tr>
				<tr>
					<td></td> 
					<td><button type="button" onclick="">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" onclick="rethree()">上一步</button></td>
				</tr>
			</table>
		</div>
	</div>
</div>
</body>
</html>








附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
36.27 KB
Html 表单代码1
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章