▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
JavaScript
การพัฒนา Web Application
ช่วยดูโค๊ดหน่อยค่ะ
<script>
function emp() {
var phone =
document.forms["femp"]["mem_telephone"];
var password =
document.forms["femp"]["mem_password"];
if (phone.value == "") {
window.alert("กรุณากรอกที่เบอร์โทรศัพท์");
phone.focus();
return false;
}
if (phone.length <10 || phone.length >10 ) { /
window.alert('กรุณากรอกข้อมูลเบอร์โทรศัพท์ให้ถูกต้อง. ');
phone.focus();
return false;
}
if (password.value == "") {
window.alert("กรุณากรอกรหัสผ่าน");
password.focus();
return false;
}
if (password.length <8 || password.length >20 ) {
window.alert('กรุณากรอกข้อมูลรหัสผ่านให้ถูกต้อง');
password.focus();
return false;
}
return true;
}
</script>