Professional Documents
Culture Documents
Hide Divison Code
Hide Divison Code
DOCTYPE html>
<html>
<body>
<style> cart{display: none;}
</style>
<button onclick="myFunction()">Passcode</button>
</div>
<script>
function myFunction() {
var x = document.getElementById("myDIV");
var cart = document.getElementById("cart111");
var y=document.getElementById("passcode");
if (x.style.display == "none" && y.value == 54 && cart.style.display=="none") {
x.style.display = "block";
cart.style.display = "block";
} else { if(y.value == 54) {
x.style.display = "none";
cart.style.display="none";
}
}
}
</script>
</body>
</html>