I have a form that has multiple select boxes and inputs with a array like name. So I have multiple select boxes with a name personrooms. I would like to get these using this
var personroom=document.querySelectorAll("input[name='personsroom[]']");
alert(personroom.length)
it gives me null (“0”). But with the same way I can select all input (text) fields. Strange. Can anyone help me? Thanks beforehand