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 ..
Example:
<form>
<input id="input1" type="text">
<input id ="input2" type = "text"/>
<input id ="input3" type = "text"/>
<input id = "input4" type = "text"/>
<input id = "input5" type = "text"/>
</form>
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);
//after merging Compare the words to SAMPLE;