Last active
          July 11, 2017 09:44 
        
      - 
      
 - 
        
Save qwersk/c0130fda99044920381e4419e3e49806 to your computer and use it in GitHub Desktop.  
    SET SAME HEIGHT #JS #JAVASCRIPT
  
        
  
    
      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
    
  
  
    
  | function set_same_height(selector){ | |
| var max_height = 0; | |
| $(selector).each(function(){ | |
| if($(this).height() > max_height){ | |
| max_height = $(this).height(); | |
| } | |
| }); | |
| $(selector).each(function(){ | |
| $(this).height(max_height); | |
| }); | |
| } | 
  
    
      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
    
  
  
    
  | test | 
  
    
      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
    
  
  
    
  | test | 
  
    
      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
    
  
  
    
  | test | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment