更新时间:2022-06-14 21:20:27
使用js
use js
function ValidTxt(txt)
{
//alert(txt.value);
var reg = new RegExp("[A-Z][0-9]{19}[F]");
if(txt.value != '')
{
if(!reg.test(txt.value) || txt.value.length != 20)
{
alert('Not in correct format.');
txt.focus();
return false;
}
}
return true;
}