html中多选框变单选框

就是一个小js,直接上代码

$("input[name='checkboxlist']").each(function () {
	        if (this.checked && e.value != this.value){
	            this.checked = false;
	        }
});

  

猜你喜欢

转载自www.cnblogs.com/longlyseul/p/12180292.html