Thanks. I don't want to hidden the input type, maybe disabled. Is it possible?
below the "code" of my page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Configuration EMA-ETH WEB</title>
<style>
body {
font-family:Netto-Pro;
margin: 0;
padding: 0;
box-sizing: border-box;
}
@font-face {
font-family: Netto-Pro;
src: url(netto_pro.otf);
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 1em;
}
nav {
background-color: #555;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav a:hover {
background-color: #ddd;
color: black;
}
section {
padding: 20px;
}
form {
max-width: 600px;
margin: 0 auto;
}
label {
display: block;
margin-bottom: 8px;
}
input, select {
width: 100%;
padding: 10px;
margin-bottom: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function EnableDisableTextBox(status)
{
}
// End -->
</script>
</head>
<body>
<header>
<h1>Configuration EMA-ETH WEB</h1>
</header>
<nav>
<a href="#home">Home</a>
<a href="#">Device Info</a>
<a href="network.php">Network Settings</a>
</nav>
<section>
<h2>Device Info</h2>
<form name="f1" action="004_attivaIPFISSO.php" method="post">
DHCP <input type="checkbox" name=others onclick="EnableDisableTextBox(this.checked)" >
<label for="ip">IP Address:</label>
<input type="text" id="ip" name="ip" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required>
<label for="sm">Subnet Mask:</label>
<input type="text" id="sm" name="sm" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required>
<label for="gw">Default Gateway:</label>
<input type="text" id="dg" name="dg" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required>
<label for="dns">DNS:</label>
<input type="text" id="dns" name="dns" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required>
<input type="submit" value="Save">
</form>
</section>
</body>
</html>