(function($)
{
$.fn.extend({
disable: function()
{
return this.each(function()
{
$(this).addClass("disable").attr({
disabled: true
});
});
},
enable: function()
{
return this.each(function()
{
$(this).removeClass("disable").removeAttr('disabled');
});
}
});
})(jQuery);