3
I want to take the amount of elements coming from an array:
document.querySelectorAll('select,input,textarea');
alert(Object.keys(arr).length);//19
Inside the array I have 4 elements to exclude, where I try to use the selector :not
:
document.querySelectorAll('select,input,textarea,input:not[type="hidden",input:not[id="input_up_img_perfil"],input:not[id="sub_img_perfil"],');
alert(Object.keys(arr).length);//19
What is the correct syntax for electing these search elements?
Maybe it’ll help you: How to use querySelectorAll only for Elements that have a specific attribute set?
– Marconi