Skip to main content
1 of 3
user avatar
user avatar

I could be wrong, but I think you could shorten ALOT of the code as follows:

$(function () {
    $(".social-option select").live("change", function(e) {
        $(".social-option select option:disabled").prop("disabled", false);
        $(".social-option select option:selected").each(function(i) {
            var $val = $(this).val();
            if ($val.length > 1) { // is not option 0
                $(".social-option select option[value="+$val+"]").prop("disabled", true);
            };
        });
    }).change();
})​;
user10934