I tried this
<body>
<input placeholder="test1" class="input"/>
<input placeholder="test2" class="input"/>
</body>
<script>
document.querySelector(".input").disabled = true;
</script>
Why is the second input (test2) not disabled. Thanks!

.querySelector()function will only ever return 1 element (ornull).