-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdd_customer.html
More file actions
66 lines (47 loc) · 1.29 KB
/
Add_customer.html
File metadata and controls
66 lines (47 loc) · 1.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Customer Details</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<style type="text/css">
form
{
font-size: 20px;
font-family: algerian;
background-color: hotpink;
color: black;
border: 2px solid black;
}
</style>
</head>
<body>
<form >
<input type="text" name="name" id="name" >
<input type="email" name="Emailid" id="email">
<input type="text" name="Mno" id="mno">
<button type="button" id="btnAdd">Add Details </button>
</form><br>
<table style="border: 2px solid black;background-color: rosybrown;color: black;font-size: 20px;font-family: algerian;padding:5px">
<thead>
<th>Name</th>
<th>Emailid </th>
<th>Mno</th>
</thead>
<tbody>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function () {
$("#btnAdd").click(function(){
var x = $("#name").val();
var y = $("#Emailid").val();
var z = $("#Mno").val();
let a= "<tr><td>"+x+"</td><td>"+y+"</td><td>"+z+"</tr>";
$("tbody").append(a);
});
}) ;
</script>
</body>
</html>