html树形下拉选框支持搜索单选多选

 

 

部分代码(完整包见资源下载链接) 

注:资源上传时默认付费,可以私信我,我看到会回复的

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Title</title>

		<style>
			body {
				margin: 50px 50px 50px 50px;
			}
		</style>
	</head>
	<body>

		<label>单选(目录不可选)</label>
		<div id="radio1" class="treePickerWrapper"></div>
		<button id="radio1-bt">获取选项内容</button>
		<hr>
		<label>单选(目录可选)</label>
		<div id="radio2" class="treePickerWrapper"></div>
		<hr>
		<label>多选(目录不可选)</label>
		<div id="check" class="treePickerWrapper"></div>
		<button id="check-bt">设置选项内容</button>
		<hr>
		<label>多选(目录可选)</label>
		<div id="check1" class="treePickerWrapper"></div>
		<hr>
		<label>初始化</label>
		<div id="init" class="treePickerWrapper"></div>
		<hr>

	</body>
</html>

 

posted @ 2020-12-31 09:19  JackieDYH  阅读(11)  评论(0编辑  收藏  举报  来源