var selects = document.getElementsByTagName('select'), i = selects.length; while(i--){ if(selects[i].onchange){ selects[i].onchange(); } }