title: Insert missing letter javascript game
body: <p>I'm making a language learning game with javascript. I want the user to be able to write the missing letter and the results to be validated through javascript if they are right or wrong. </p>
  
  <pre><code>&lt;form&gt;
        De&lt;input id="letterone" type="text" name="latter" pattern="[A-Za-z]{1}"&gt;
        ign&lt;input id="lettertwo" type="text" name="latter" pattern="[A-Za-z]{1}"&gt;r
        &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My javascript code.</p>
  
  <pre><code>if ((getElementById('letterone')==='s') &amp;&amp; (getElementById('lettertwo')==='e')) {
      alert('Correct');
  }else{
      alert('Wrong');
  }
  </code></pre>