js控制easyui的combobox组件的隐藏与显示

<label>
	<input type="radio" name="quarterOrMonth" th:value="1">季度label>
 <input id="quarterCombobox" class="easyui-combobox">
<label><input type="radio" name="quarterOrMonth" th:value="2">月度label>
<input id="monthCombobox" class="easyui-combobox">

页面显示:
在这里插入图片描述
根据id动态控制combobox的隐藏与显示

 $("#quarterCombobox+.combo").hide()//隐藏
 $("#monthCombobox+.combo").hide()//隐藏
 
 $("#quarterCombobox+.combo").show()//显示
 $("#monthCombobox+.combo").show()//显示

你可能感兴趣的:(easyui)