javascript - ztree 下拉框 保存多个 回显得问题 注:(保存修改的的时候 可以填入隐藏input为)B5,B6。。。。
PHP中文网
PHP中文网 2017-04-10 17:56:42
[JavaScript讨论组]

<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]

PHP中文网
PHP中文网

认证高级PHP讲师

全部回复(1)
伊谢尔伦

没明白你的问题,关于回显问题,你下拉的时候,获取数据,用数据再次初始化一下呗。$.fn.zTree.init($("#tree"), setting, zTreeNodes);

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号