var e = document.getElementsByClassName("chartBlock")[0]; var strUser = e.options[e.selectedIndex].value;