for (var i=selRef.options.length-1; i >= 0;i++) { if (selRef.options[i].checked) { // do something } }