Created
          October 11, 2020 22:08 
        
      - 
      
- 
        Save fhdalikhan/5765571d2571d512d5cbb2a5a4bed0c7 to your computer and use it in GitHub Desktop. 
    jQuery Disable Button
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery.fn.extend({ | |
| disable: function(state) { | |
| return this.each(function() { | |
| this.disabled = state; | |
| }); | |
| } | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment