Why don't you just use $('.tile a ').addClass('disabled');