33 lines
675 B
JavaScript
33 lines
675 B
JavaScript
$(document).ready (function () {
|
|
$.fn.check = function () {
|
|
return this.each (function () {
|
|
this.checked = true;
|
|
})};
|
|
|
|
$.fn.uncheck = function () {
|
|
return this.each (function () {
|
|
this.checked = false;
|
|
})};
|
|
|
|
$.fn.enable = function () {
|
|
return $(this).removeAttr ("disabled");
|
|
};
|
|
|
|
$.fn.disable = function () {
|
|
return $(this).attr ("disabled", "disabled");
|
|
};
|
|
|
|
$.fn.pulsate = function () {
|
|
return $(this).fadeIn ("normal", function () {
|
|
$(this).fadeOut ("normal", function () {
|
|
$(this).fadeIn ("normal", function () {
|
|
$(this).fadeOut ("normal", function () {
|
|
$(this).fadeIn ().focus ();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
};
|
|
|
|
});
|