实现简单输入支付密码的输入
2016-04-07 17:27
323 查看
<div class="gswithdrawaltck">
<h1><font></font><em>58.00元</em></h1>
<h2>提现银行卡:邮政银行</h2>
<div class="gswithdrawaltckinput"><input id="aa" type="password" name="mima" oninput="shuru(this.value);" onpropertychange="shuru(this.value)"/> <input type="password" name="mima" /> <input type="password" name="mima" /> <input type="password" name="mima"
/> <input type="password" name="mima" /> <input type="password" name="mima" /> </div>
</div>
<script>
function shuru(el) {
var num = ch();
var tag = document.getElementsByName("mima");
tag[0].value = el.substr(el.length - 1, 1);
tag[num].value = el.substr(el.length - 1, 1);
}
var i = 0;
function ch() {
return i++;
}
</script>
<h1><font></font><em>58.00元</em></h1>
<h2>提现银行卡:邮政银行</h2>
<div class="gswithdrawaltckinput"><input id="aa" type="password" name="mima" oninput="shuru(this.value);" onpropertychange="shuru(this.value)"/> <input type="password" name="mima" /> <input type="password" name="mima" /> <input type="password" name="mima"
/> <input type="password" name="mima" /> <input type="password" name="mima" /> </div>
</div>
<script>
function shuru(el) {
var num = ch();
var tag = document.getElementsByName("mima");
tag[0].value = el.substr(el.length - 1, 1);
tag[num].value = el.substr(el.length - 1, 1);
}
var i = 0;
function ch() {
return i++;
}
</script>
相关文章推荐
- 哈希表及哈希表查找相关概念
- openSession和getCurrentSession的比较
- 正则表达式(适用于oracle及linux)
- mongodb3.0.3集群分片搭建
- LintCode-最长公共前缀
- 在iOS上绘制渐变
- 【广告】广告笔记
- 多路径(multi-path)安装测试实例
- css实现固定高度及未知高度文字垂直居中的完美解决方案
- JNI - Getting Started
- R语言笔记 独立性 检验
- tomcat运行一段时间后,org.apache.jk.common.ChannelSock报错java.lang.IndexOutOfBoundsExcept
- tableView 折叠效果
- oracle锁概念 与 v$parameter字段介绍
- swift 微信支付接口实现
- NopCommerce源码架构详解--初识高性能的开源商城系统cms
- Codeforces 584D Dima and Lisa 【数学】
- 10个随机数和
- vb
- HDU:2063 过山车(二分图最大匹配)