我想仅在选择特定值(即special
)时显示 div 。我尝试了以下方法,但它不起作用。任何提示我如何解决它?
<select
ng-change="timeline.selectNote()" ng-model="timeline.selectedNote" ng-options="opt as opt.NoteContent for opt in timeline.noteOptions" class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
<option value="">-- select a note --</option>
</select>
<div class="select-element animate-hide" ng-show="timeline.selectedNote=='special'">