Skip to content Skip to sidebar Skip to footer

Disable Multiple Values In Dropdowns Based On Another Dropdown

I want disable multiple values in the second and third dropdown based on first dropdown selected values.I am able to do this for single selected value.But,How to do this for multi

Solution 1:

   if (selectedItem) {

    $(selectedItem).each(function(v,i) {

    $dropdown2.find('option[value="' + i + '"]').prop('disabled', true);

    $dropdown3.find('option[value="' + i + '"]').prop('disabled', true);

                                });

Post a Comment for "Disable Multiple Values In Dropdowns Based On Another Dropdown"