<p class="hide_editor_sub subject-hide">
<label for="subject_tertiary">Dertiary Subject Area:</label>
<select name="subject_tertiary" id="subject_tertiary" class="subject-select"
onchange="LoadCoAuthors();">
<option value="-1">None</option>
<?php
foreach ($subject_areas as $subject_area) {
$selected = $unit->getSubjectArea(10) == $subject_area->getSubjectAreaId() ? "selected" : "";
echo "<option value='" . $subject_area->getSubjectAreaId() . "' $selected>" . $subject_area->getName() . "</option>";
}
?>
</select><button id="remove_button" type="button" class="btn btn-danger delete-project" style=" margin-left: 10px">Remove</button>
</p>
<button id='show_add_button_sub' type="button" class="btn btn-success" style="display: block;">Add Evaluator</button>
添加按钮用于显示下拉菜单,当选择下拉列表显示为无空值时,则应显示其他下拉列表
答案 0 :(得分:0)
您的问题尚不清楚,但这与我认为是类似问题的链接有关。据我所知,您只想在某些条件下显示第二个下拉列表。您将需要使用.change函数来检测何时发生了更改(在本例中为第一个下拉列表)。然后,您可以检查该值是否不为null,并使用.show或.hide作为第二个下拉菜单。 Show content of 2nd Drop down after 1st Drop down getting selected.