var items = document.querySelectorAll('.option-parent'); for (var i=0; i<items.length; i++) {items[i].disabled = true}