Skip to content

How to get the selected value? #44

@kabirvs

Description

@kabirvs

How can I get the selected value?

I have tried some way:

    var comboTree1;
    jQuery(document).ready(function($) {
        comboTree1 = $('#justAnInputBox').comboTree({
            source : SampleJSONData,
            isMultiple: true,
            cascadeSelect: true,
            collapse: true,
            selectableLastNode: true,
            selected: selectedItem
        });
        var selectedTitles = comboTree1.getSelectedItemsTitle();
        console.log('selectedTitles: ' , selectedTitles);
        var selectedIds = comboTree1.getSelectedItemsId();
        console.log('selectedIds: ' , selectedIds);
    });
    
    Getting error as:
    jQuery.Deferred exception: comboTree1.getSelectedItemsTitle is not a function TypeError: comboTree1.getSelectedItemsTitle is not a function

Is there any way to get the selected value/ids ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions