Skip to content

Instantly share code, notes, and snippets.

@erayakartuna
Created April 3, 2015 06:44
Show Gist options
  • Save erayakartuna/9887a6bd5f7e6e4912e1 to your computer and use it in GitHub Desktop.
Save erayakartuna/9887a6bd5f7e6e4912e1 to your computer and use it in GitHub Desktop.
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