Created
April 3, 2015 06:44
-
-
Save erayakartuna/9887a6bd5f7e6e4912e1 to your computer and use it in GitHub Desktop.
This file contains 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
for(i=1;i<=12;i++) | |
{ | |
$('.col-md-'+i).each(function(){ | |
for(j=1;j<=12;j++) | |
{ | |
if($(this).hasClass('col-sm-'+j)) | |
{ | |
$(this).removeClass('col-sm-'+j); | |
$(this).addClass('col-sm-'+i); | |
} | |
if($(this).hasClass('col-xs-'+j)) | |
{ | |
$(this).removeClass('col-xs-'+j); | |
$(this).addClass('col-xs-'+i); | |
} | |
} | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment