var Studentname = document.forms["frmstdreg"]["txtstdname"].value;
if(studentname == ""){
document .getElementById("errfullname").innerHTML = "Полное имя не может быть пустым";
document.forms["frmstdreg"]["txtstdname"].style.border = "2px сплошной красный";
return false;
var Studentaddress = document.getElementById ("address").value;
if(studentaddress == ""){
alert("Адрес студента не может быть пустым");
вернуть false;
function addRandomWord(){
document.forms["frmstdreg"]["txtstdname"].value = "Кишор S" ;
Код: Выделить всё
ITRC
Student Registration
Full Name :
Address :
Email Address :
NIC :
Date of Birth :
Mobile No :
Save
Sample name
Подробнее здесь: https://stackoverflow.com/questions/793 ... thingyaama
Мобильная версия