select onchange事件的使用
<select name="expireDay" id="expireDay" class="form-control" onchange="searchChange(this.options[this.options.selectedIndex].value);">
<!-- <option value="" >---请选择---</option> -->
<option
<c:if test="${'0' == expireRemind.searchType}">
selected
</c:if>
value="0">aa</option>
<option
<c:if test="${'1' == expireRemind.searchType}">
selected
</c:if>
value="1">bb</option>
</select>
可以显示和隐藏
function searchChange(obj){
if(obj=="0"){
$('#expireDate').hide();
$('#soonExpireDay').show();
}
if(obj=='1'){
$('#soonExpireDay').hide();
$('#expireDate').show();
}
}