JavaScript Conditional Hiding and Showing.
I'm confused with JavaScript conditional hiding and showing features, for example see this code:- // I want a program that gets the users input, and if that input matches a specific number I want to hide part of the form. <Html> <Input type="number" id="pin" value=""> <Button type="submit" onclick="hidden()"></button> </Html> <Script> var x=document.getElementById('pin').value; Function hidden(){ If(x.value=1234){ document.getElementById('pin).style.display="none"; } } </Script> Thanks in advance.