Skip to content

Instantly share code, notes, and snippets.

@mustardamus
Created July 22, 2010 01:35
Show Gist options
  • Save mustardamus/485450 to your computer and use it in GitHub Desktop.
Save mustardamus/485450 to your computer and use it in GitHub Desktop.
var uls = '';
for(i = 1; i <= that.find('ul').length; i++) { //that = $(this);
uls += 'ul ';
$(uls, that).removeClass().addClass('sublevel-'+i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment