英文校验:
英文校驗:
<input?? type="text"? name="menuCode" value=""><br/>
<input type="button" name="btnSave" value="提交" id="btnSave" class="" onClick="return ValidateCode();" >
<script>??
function ValidateCode(){
? var pattern = /^([a-zA-Z])+$/;?
? if(pattern.test(document.forms[0].menuCode.value)){
? ??? return true;
? }else{??
? alert("請輸入英文編碼!");
? document.forms[0].menuCode.focus();
? return false;
? }?
? }
? </script>
總結
- 上一篇: 【UE 材质】磨砂玻璃材质
- 下一篇: 开直通车需要经历哪些步骤,具体怎么操作