var someIsPositive = false; for (var i = 0; i < selects.length; i++) { if (+[i].value > 0) someIsPositive = true; }