$("#_resetValue").click(function(){ $(".form-control").each(function(i){ //input内容重置 $(this).attr('value',""); $("#itemStatus").each(function (i, j) { //select内容重置 $(j).find("option:selected").attr("selected", false); $(j).find("option").first().attr("selected", true); }); }); });
select重置清空选取条件
猜你喜欢
转载自blog.csdn.net/shizhudufou/article/details/80527634
今日推荐
周排行