Menu
[CODE]
<form id=”myform”>
<input type=”checkbox” name=”M3 3″ />Hello 1
<br/>
<input type=”checkbox” name=”M4 3″/>Hello 2
<br/>
<input type=”checkbox” name=”M5 3″/>Hello 3
<br/>
<input type=”checkbox” name=”M6 3″/>Hello 4
</form>
Say for example i have the following input checkboxes above. I want to loop through each of the input checkboxes and print out the text of each i.e. Hello1, Hello2 etc. I know how to create the loop but im trying to know what is the JS method to get the text, something like innerText i think?
for(each of the inputs)
{
document.write(input[i].innerText);
}