I want to get quantities 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 :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 sorting out these search elements?