//重置按钮重置下拉框 $("#searchReset").click(function(){ document.getElementById("cpCode").options.selectedIndex = 0; //回到初始状态 $("#cpCode").selectpicker('refresh');//对下拉框进行重置刷新 });
直接上代码,按理说bootstrap有自己的方法,我这里只是应急搜的解决办法。
//重置按钮重置下拉框 $("#searchReset").click(function(){ document.getElementById("cpCode").options.selectedIndex = 0; //回到初始状态 $("#cpCode").selectpicker('refresh');//对下拉框进行重置刷新 });
直接上代码,按理说bootstrap有自己的方法,我这里只是应急搜的解决办法。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。