答案 0 :(得分:2)
var dropdown = document.getElementById('myDropdown');
var div = document.getElementById('myDiv');
dropdown.addEventListener('change', function() {
if (!(this.value)) {
div.style.visibility = "visible";
} else {
div.style.visibility = "hidden";
}
});
<select id="myDropdown">
<option selected></option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<div id="myDiv">
VISIBLE/HIDDEN
</div>