title: How to merge the value of input boxes Javascript
body: <p>I have 5 input box, and each input box Have a different value .. how i can merge the value of the input boxes and compare it, then alert or do something ..</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;form&gt;
              &lt;input id="input1" type="text"&gt;
              &lt;input id ="input2" type = "text"/&gt;
              &lt;input id ="input3" type = "text"/&gt;
              &lt;input id = "input4" type = "text"/&gt;
              &lt;input id = "input5" type = "text"/&gt;
  &lt;/form&gt;
  
      var input1 = document.getElementById('input1').value;
      var input2 = document.getElementById('input2').value;
      var input3 = document.getElementById('input3').value;
      var input4 = document.getElementById('input4').value;
      var input5 = document.getElementById('input5').value;
      var wordsConcat = input1.concat(input2,input3,input4,input5);
  </code></pre>
  
  <p>//after merging Compare the words to SAMPLE;</p>