jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • Hello123
    Participant

    hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.

    $(‘#hello’).on(‘select’, function (event) {
    var args = event.args;
    //console.log(“it is for selcet the item in box”+JSON.stringify(args));
    if (args) {
    // index represents the item’s index.
    var index = args.index;
    var item = args.item;
    var label = item.label;
    var id = item.id;
    console.log(“id:”+index);
    if (label === ‘a’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
    }
    if(label === ‘b’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
    }
    $scope.networkTagsSelected.push(label);
    console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
    }
    });

    i try it but it not work for me


    Hello123
    Participant

    hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.

    $(‘#hello’).on(‘select’, function (event) {
    var args = event.args;
    //console.log(“it is for selcet the item in box”+JSON.stringify(args));
    if (args) {
    // index represents the item’s index.
    var index = args.index;
    var item = args.item;
    var label = item.label;
    var id = item.id;
    console.log(“id:”+index);
    if (label === ‘a’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
    }
    if(label === ‘b’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
    }
    $scope.networkTagsSelected.push(label);
    console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
    }
    });


    Hello123
    Participant

    hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.

    $(‘#hello’).on(‘select’, function (event) {
    var args = event.args;
    //console.log(“it is for selcet the item in box”+JSON.stringify(args));
    if (args) {
    // index represents the item’s index.
    var index = args.index;
    var item = args.item;
    var label = item.label;
    var id = item.id;
    console.log(“id:”+index);
    if (label === ‘a’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
    }
    if(label === ‘b’)
    {
    $(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
    }
    $scope.networkTagsSelected.push(label);
    console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
    }
    });

Viewing 3 posts - 1 through 3 (of 3 total)