<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档title>
<script type="text/javascript" src="jquery-1.9.1.min.js">script>
<script type="text/javascript" src="jquery.ztree.all-3.5.js">script>
<script type="text/javascript" src="droptree.js">script>
<link href="droptree_style.css" rel="stylesheet" />
<link href="zTreeStyle/zTreeStyle.css" rel="stylesheet" />
head>
<script type="text/javascript">
$(document).ready(function(){
$("#simple-select").droptree({
transition:'mfs',
items:[{code:'man',name:'男人'},
{code:'woman',name:'女人'},
{code:'yao',name:'人妖'}
]}
);
$("#simple_input").droptree({items:[
{code:'root',name:'根节点',pid:-1},
{code:'man',name:'男装',pid:'root'},
{code:'woman',name:'女装',pid:'root'},
{code:'man1',name:'男装1',pid:'man'},
{code:'man2',name:'男装2',pid:'man'},
{code:'woman1',name:'女装1',pid:'woman'}
],
transition:"ztree"
});
});
script>
head>
<body>
<div class="wrap" style="width:600px; margin:0 auto; margin-top:200px">
<div style="width:60px;float:left">
<select id="simple-select" name="simple-select">
<option value="opt1">option 1option>
<option value="opt2">option 2option>
<option value="opt3" selected="selected">option 3option>
select>
div>
<div style="float:right">
<input type="text" name="simple_input" id="simple_input" value="man2"/>
div>
div>
body>
html>