jQuery function


SUBMITTED BY: djwisnia55

DATE: Sept. 29, 2016, 6:43 p.m.

FORMAT: JavaScript

SIZE: 234 Bytes

HITS: 660

  1. $.fn.disable = function() {
  2. this.each(function() {
  3. this.setAttribute('disabled', 'disabled');
  4. });
  5. };
  6. $.fn.enable = function() {
  7. this.each(function() {
  8. this.removeAttribute('disabled');
  9. });
  10. };

comments powered by Disqus