/**
The user name can only be in English or Chinese
*/
$ ("#spreadName"). Formvalidator ({empty:false,
OnShow: "Please enter the name of the account holder",
onfocus: "Please enter the name of the account holder",
Oncorrect: "Input correct"
}). inputvalidator ({
Min:2,
Max:16,
Onerrormin: "Account holder name format input error. ",
Onerrormax: "Account holder name format input error. "
}). functionvalidator ({
Fun:function (Val, spreadname) {
/^[^a-za-z0-9_\u4e00-\u9fa5]/Chinese =/^[0-9a-za-z_\u4e00-\u9fa5]*$//^ ([\u4e00-\u9fa5]|[ \UFE30-\UFFA0]) *$//^[^\u4e00-\u9fa5]*$/
var regname =/^[\ ' \^\#\$%\&\|\:\[\]\{\}\=\ ' \>\<?]| [0-9].*$/;
if (Regname.test (val)) {
Return "The item can only be made up of letters or Chinese";
}
return true;
}
});
The picture effects on the bank are made with table.
function Check (sId) {
var oimg = document.getelementsbytagname (' img ');
var radios = $ (' #frm Input[type=radio] ');
for (var i = 0; i < oimg.length; i++) {
OBJ = document.getElementById ("Banktype" + (i + 1));
if (oimg[i].id = = sId) {
Obj.checked = true;
Oimg[i].style.border = ' 1px solid red ';
} else {
Oimg[i].style.border = ' 0px solid red ';
}
}
for (var i = 0; i < radios.length; i++) {
OBJ = document.getElementById ("img" + (i + 1));
if (radios[i].id = = sId) {
Obj.style.border = ' 1px solid red ';
} else {
Radios[i].style.border = ' 0px solid red ';
}
}
}