<p class="col-xs-12" style="padding: 0px;">
<p class="col-xs-10 form-group"
style="padding: 0px; margin: 0 0 10px 0;">
<label for="tzjg" class="col-xs-2 control-label"
style="padding-right: 0px; padding-left: 0px;"> 投资方向<font style="color: red;">*</font></label>
<p class="col-xs-8" style="padding-right: 0;width: 269px;padding-left: 30px;">
<p class="xlpic form-control-feedback" style="left: 340px;"></p>
<input class="form-control input-fx" style="background-color: #FFF;height: 35px;" readonly="readonly" type="text" name="business_picker" onchange="necsseary1(this)" placeholder="必填">
<c:choose>
<c:when test="${fn:length(InvestmentDirection)>100}">
<input type="hidden" id="direction" name="direction" value="${fn:substring(InvestmentDirection,0,100)}" >
</c:when>
<c:otherwise>
<input type="hidden" id="direction" name="direction" value="${InvestmentDirection}" >
</c:otherwise>
</c:choose>
<p class="hy-industry-p" style="display: none;" >
<p class='col-xs-12' style="overflow:auto;height: 410px;" >
<ul id="treeDemo" class="ztree treeDemo"></ul>
<button type="button" class="button button-primary " onclick="getIndustrycheck(this);" style="width:95px;height: 30px;line-height: 30px;padding: 0px;margin-left:30px;" >确认</button>
</p>
</p>
</p>
</p>
</p>
![图片描述][1]


Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
没明白你的问题,关于回显问题,你下拉的时候,获取数据,用数据再次初始化一下呗。
$.fn.zTree.init($("#tree"), setting, zTreeNodes);