function getSelectedValueByID(id){ e = document.querySelectorAll("select#"+id)[0]; return e.options[e.selectedIndex].value }