ITeye博客

[jquery插件]金额及银行卡号格式化

全冠清 · 2013-07-16 15:54 · Web前端 · Markdown

示例:


<!doctype html>
<html lang="cn">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
	<script src="inputFormat.js"></script>
	<script type="text/javascript">
	    $(function(){
			$('#account').inputFormat('account')
			$('#money').inputFormat('amount')
      })
	</script>
</head>
<body>
	帐号:<input id="account"/><br/>
    金额:<input id="money"/>
</body>
</html>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。