// проверка input var ok = [].every.call( selAll, function(el) { return el.nextElementSibling.style.color == 'green' }); ok ? id('create').removeAttribute('disabled') : id('create').setAttribute('disabled', 'disabled') });