Первая часть дает мне текст < /p>
Первая часть дает мне текст < /p>
$(".togSubList").each(function () {
var bob = $(this).find(".parent_link").text();
console.log(bob);
});
< /code>
Но я не могу заставить каждого из них добавить арию. < /p>
$(".togSubList").each(function () {
var bob = $(this).find(".parent_link").text();
//console.log(bob);
$(".sub-expand_collapse").each(function(){
$(this).attr("aria-label","expand " + bob)
});
});
< /code>
html < /p>
[*]
Space saving widgets
- list of links
Подробнее здесь: https://stackoverflow.com/questions/450 ... el-on-each