title: Execute jQuery function if input value is correct
body: <p>I'm trying to create a simple overlay which will disappear if an input field is correct. A super basic login page if you will, which is a div containing an input. My understanding of jQuery is limited so I've no doubt my syntax is a mess. </p>
  
  <pre><code>&lt;div id="enter"&gt;
      &lt;input type="text" name="name" id="password" required&gt;
  &lt;/div&gt;
  
  if $("input[name= "est1889"]").change(function() {
      $("#enter").fadeOut("slow");
  };
  </code></pre>