$('li').click(function() {
n = $(this).attr('class');
c = parseInt(n.substr(1, 1)) + 1;
l = '.L' + c;
$(this).nextAll().each(function(i, el) {
if ($(el).hasClass("L1")) {
return false;
}
if ($(el).hasClass("L2")) {
$(this).slideToggle(250)
}
});
})
Хочется вместо "L2" использовать переменную l . Подскажите как.