-
Notifications
You must be signed in to change notification settings - Fork 0
/
s23.html
42 lines (33 loc) · 1.25 KB
/
s23.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<label for=""> Enter Employee id</label>
<input type="number" name="" id="eid"> <br><br>
<label for="">Enter Employee Name</label>
<input type="text" name="" id="enam"> <br><br>
<label for="">Enter Designation</label>
<input type="text" name="" id="edesg">
<br><br>
<input type="button" value="Submit" onclick="validate()">
<br>
<script>
function validate() {
id = document.getElementById("eid").value
ename = document.getElementById("enam").value
desg = document.getElementById("edesg").value
document.getElementById("eid").style.backgroundColor = "cyan"
document.getElementById("enam").style.backgroundColor = "cyan"
document.getElementById("edesg").style.backgroundColor = "cyan"
document.getElementById("eid").disabled = true;
document.getElementById("enam").disabled = true;
document.getElementById("edesg").disabled = true;
alert("email id :" + id + ename + "@yahoo.com")
}
</script>
</body>
</html>