我试图弄清楚如何使用addEventListener仅在用户选择某些选项时显示

 var AddType = document.getElementById("addressType.form-control");
            var otherAdd = document.getElementById("otherAddType.form-control");

            AddType.addEventListener("show", function(){
            if (AddType.value = "other"){
            otherAdd.setAttribute("class", "show");
            }else {
            otherAdd.setAttribute("class", "hidden");
            }
            }, false);