获取jsTree的检查值-使用表单发布提交 [英] get checked values for jsTree - submit with form post

查看:163
本文介绍了获取jsTree的检查值-使用表单发布提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用具有复选框主题的jsTree jQuery插件.有人知道如何通过表单发布获取选定的值吗?

I'm using the jsTree jQuery plugin with the checkbox theme. Does anyone know how to get the selected values with a form post?

谢谢!

推荐答案

您有答案吗?如果不是这样,则会出现在 jstree google groups

Have you got your answer ? If not, here is one that appears in the jstree google groups


    function submitMe(){ 
        var checked_ids = []; 
        $("#server_tree").jstree("get_checked",null,true).each 
            (function () { 
                checked_ids.push(this.id); 
            }); 
           doStuff(checked_ids); 

这篇关于获取jsTree的检查值-使用表单发布提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆