RsD0p9BK
4/5/2014 - 7:57 AM

toggle disabled attribute in jquery 1. http://stackoverflow.com/questions/11903293/toggle-disabled-attribute-in-jquery 2. http://stackoverfl

$("#menuContinenti").prop('disabled', function (_, val) { return ! val; });

(function($) {
    $.fn.toggleDisabled = function(){
        return this.each(function(){
            this.disabled = !this.disabled;
        });
    };
})(jQuery);