I'm trying to add a extra descriptive div to my links. The div should get it's information from the li a title attribute.
I'm able to get the title attribute but how do I pass it on to the div .omschrijving?
$("#sidebar li ").append("<div class='omschrijving'></div>");
$("#sidebar li a").each(function(){
var hoverText = $(this).attr("title");
$(this).text(hoverText);
});
Thank you in advance.