var nodes = document.getElementsByTagName('select');
var nodes = document.getElementsByTagName('select');
var prev = 0;
setInteval(function () {
if (nodes.length != prev) {
prev = nodes.length;
recount();
}
}, 10);
document
в современных браузерах.