我对javascript是外行啊,请大家指点迷津!
解决方案 »
- 100分。。。json数据在js里面怎么取
- jqgrid + struts2返回数据收不到。
- 设置span的宽度为其父容器(div)宽度-20该怎么做
- 不要小看这个问题
- 小弟又一个网站上线了,请大家多找BUG,谢谢了
- |zyciis| 一条二级菜单在IE6中可以,但在Firefox中不行谁会帮改改啊 谢谢 好像是FireFox不支持window.event 补分贴:cgisir 接分
- 怎么看页面里有几个settimeout事件在执行
- 一个普通的问题
- 500分等高手来拿(JS请教)
- jquery中eq、gt、lt的使用问题
- 关于框架的很菜的问题!!
- 急------如果让input中的数字不超过一个固定的数字?
function checkForm(){
____
____if (document.userInfo.email.value.indexOf('@')==-1){
____ alert ("The email address you entered does not contain the right characters!");
document.userInfo.email.focus();
____ return false ;
}
else if (document.userInfo.password.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.password.focus();
____ return false;
}
else if (document.userInfo.cpassword.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.cpassword.focus();
____ return false;
}
else if (document.userInfo.firstname.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.firstname.focus();
____ return false;
}
else if (document.userInfo.lastname.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.lastname.focus();
____ return false;
}
else if (document.userInfo.country.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.country.focus();
____ return false;
}
else if (document.userInfo.company.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.company.focus();
____ return false;
}
else if (document.userInfo.address1.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.address1.focus();
____ return false;
}
else if (document.userInfo.password.value != document.userInfo.cpassword.value){
____ alert ("Your Confirmation password does not match your original password!" );
document.userInfo.cpassword.focus();
____ return false;
}
else return true;
}
function checkForm(){
____
____if (document.userInfo.email.value.indexOf('@')==-1){
____ alert ("The email address you entered does not contain the right characters!");
document.userInfo.email.focus();
____ return false ;
}
else if (document.userInfo.password.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.password.focus();
____ return false;
}
else if (document.userInfo.cpassword.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.cpassword.focus();
____ return false;
}
else if (document.userInfo.firstname.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.firstname.focus();
____ return false;
}
else if (document.userInfo.lastname.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.lastname.focus();
____ return false;
}
else if (document.userInfo.country.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.country.focus();
____ return false;
}
else if (document.userInfo.company.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.company.focus();
____ return false;
}
else if (document.userInfo.address1.value ==""){
____ alert ("One or more of the required fields is missing!" );
document.userInfo.address1.focus();
____ return false;
}
else if (document.userInfo.password.value != document.userInfo.cpassword.value){
____ alert ("Your Confirmation password does not match your original password!" );
document.userInfo.cpassword.focus();
____ return false;
}
else return true;
}