(function($)
{
$.fn.enable = function()
return this.each(function() {
$(this)
.removeClass('ui-state-disabled')
.removeClass('ui-button-disabled')
.removeProp('disabled');
});
};
$.fn.disable = function()
.addClass('ui-state-disabled')
.prop('disabled', true);
})(jQuery);