<strong>jquery代码</strong> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="52000" class="copybut" id="copybut52000" onclick="doCopy('code52000')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code52000"> <br>$("#bankAccountNumber").change(function(){ <br>alert("1"); <br>var account = $("channelForm.bankAccount.account").val(); <br>alert("2"); <br>var reg = /^\d{19}$/g; // 以19位数字开头,以19位数字结尾 <br>if( !reg.test(account) ) <br>{ <br>alert("格式错误,应该是19位数字!"); <br>} <br>}) <br> </div> <br><strong>html代码</strong> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="43714" class="copybut" id="copybut43714" onclick="doCopy('code43714')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code43714"> <br> <br> <br> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>楠</title> </div>