15 lines
279 B
JavaScript
15 lines
279 B
JavaScript
|
(function() {
|
||
|
$.fn.extend({
|
||
|
disable: function() {
|
||
|
return $(this).attr('disabled', 'disabled').addClass('disabled');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$.fn.extend({
|
||
|
enable: function() {
|
||
|
return $(this).removeAttr('disabled').removeClass('disabled');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}).call(this);
|