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

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

问题描述

我正在使用带有复选框主题的 jsTree jQuery 插件.有谁知道如何通过表单帖子获取所选值?

谢谢!

解决方案

你有答案了吗?如果没有,这里是出现在 jstree google 组

中的一个<上一页>函数提交我(){变种检查ID = [];$("#server_tree").jstree("get_checked",null,true).each(功能 () {check_ids.push(this.id);});doStuff(checked_ids);

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

Thank you!

解决方案

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天全站免登陆