title: User text input with an if statement
body: <p>I'm new to JavaScript and have run into a challenge (for me). I've looked online for a solution, but to my surprise I couldn't find it. This must have a very basic solution! </p>
  
  <p>The problem:
  I want JavaScript to execute an if statement based on user input from a text field.</p>
  
  <pre><code>&lt;input id="text_a" type="text;" /&gt;
  &lt;p id="answer"&gt;&lt;/p&gt;
  &lt;button onclick="myFunction()"&gt;Check&lt;/button&gt;
  
  &lt;script&gt;
  function myFunction()
  {
  var a=document.getElementById("text_a").vlaue;
  
  if (a=="hello")
    {
  document.getElementById("answer").innerHTML="Correct!";
    }
  else
    {
  document.getElementById("answer").innerHTML="Oops!";
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>When I try this creation out, no matter what is entered into the text input (even the right answer) the else statement is executed. What am I missing to get the if statement to execute?? Thanks in advance for any and all help</p>