0% found this document useful (0 votes)
7 views

Customer

Uploaded by

Rajesh Antony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Customer

Uploaded by

Rajesh Antony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Customer Information Form</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
label {
display: block;
margin-bottom: 8px;
}
input {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 10px 15px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>

<h2>Customer Information Form</h2>


<form id="customerForm">
<label for="customerName">Customer Name:</label>
<input type="text" id="customerName" name="customerName" required>

<label for="contactNumber">Contact Number:</label>


<input type="tel" id="contactNumber" name="contactNumber" required>

<button type="submit">Submit</button>
</form>

<script>
document.getElementById('customerForm').addEventListener('submit',
function(event) {
event.preventDefault();
const customerName = document.getElementById('customerName').value;
const contactNumber = document.getElementById('contactNumber').value;
console.log('Customer Name:', customerName);
console.log('Contact Number:', contactNumber);
// Here you can add code to handle form submission, e.g., send data to
a server
});
</script>

</body>
</html>

You might also like