How in jquery to write the whole html block into a variable for further manipulation on this unit?

How in jquery to write the whole html block into a variable for further manipulation on this unit?
It will not work as you need
var intro_feed = $(".intro-active");
July 9th 19 at 13:20
2 answers
July 9th 19 at 13:22
Solution
var intro_feed = $(".intro-active").html();
done in a similar way, but attributes then I can't get through using the same variable - Alexander.Schmeler90 commented on July 9th 19 at 13:25
var div = $('div').html();
console.log(div);

 var href = $('<div>'+div+'</div>').find('a').attr('href');
 console.log(href);

codepen.io/anon/pen/LNoqVN?editors=1111 - Daphne_Roob commented on July 9th 19 at 13:28
July 9th 19 at 13:24
Solution
var $intro_feed = $(".intro-active");
// $intro_feed.attr('title');
// $intro_feed.data('tag');
// $intro_feed.find('a').attr('href');

This code should work. I personally do not understand why you are trying to do differently ?

Find more questions by tags jQuery