Looking for a way to create a function that lets a user type in their postcode and displays info dependent on if the number is in a list or not. 

A optimal solution would be if it could be numbers between 90000-90100 or specific like 90210 or 90212.

HTML

```
<input id="input" type="text">
<input type="button" value="Submit" onClick="postcode()">
<div style="display: none;" id="yes">yes</div>
<div style="display: none;" id="no">no</div>

```

Javascript

```
<script>
function postcode()
{
var input = document.getElementById("input");
if(input.value == "90210"){
    document.getElementById("yes").style.display = "block"
}
else{
    document.getElementById("no").style.display = "block"}
}
</script>

```

Codepen
<https://codepen.io/anon/pen/rGJOyV>

Thank you!