效果一(默认)

产品ID: 产品名称:
var tree1 = new DialogTree({
	templatePath	: 'productTemplate.html',
	ajaxPath 		: 'data.html',
	selectType		: '0',
	onselected		: function(treeObj) {}
});

$('#showTree1').click(function(){
	tree1.registeTree({
		title	: '选择[产品1]',
		id		: '#demo1 #productId', 
		name	: '#demo1 #productName'
	});
});
		

效果二(自定义对话框、树属性,宽度:700,切换树的时候自动关闭其他节点)

产品ID: 产品名称:
var tree2 = new DialogTree({
	templatePath	: 'productTemplate.html',
	ajaxPath 		: 'data.html',
	selectType		: '0',
	weebox		: {width: 700},
	simpletree		: {autoclose: true},
	onselected		: function(treeObj) {}
});

$('#showTree2').click(function(){
	tree2.registeTree({
		title	: '选择[产品2]',
		id		: '#demo2 #productId', 
		name	: '#demo2 #productName'
	});
});
		

参数说明


说明:基于jquery.weeboxjquery.simpletree.js包装的一个 对话框下拉树,在我的那个开源项目中使用了这两个插件的简单结合,很多网友看了好加我要源码,然后就花一上午时间简单整理了一下下载
关于插件:因为是集成使用非本人开发,所以不做成插件形式,大家可以根据自己的需求进行更改
插件功能集成 by wsria.cn