my html code is like that:
<table>
<input type="text" name="FirstInput">
....
<input type="text" name="LastInput">
</table>
my question is that, how could I traverse all the input? In fact what I want is to verify whether all the input are empty, I think if I can just traverse all the input then it is possible to do that. But how could I traverse all the value of input inside a table? Thank you very much
for (const elem in document.querySelectorAll('table input')) { console.log (elem); ... }