Capturing sibling text of the clicked element through launch
We have a rule in Launch to capture a paragraph(".link.sl-cta.video") click in the DOM. We also want to capture the text present in sibling div when the paragraph is clicked. We tried the below custom code in the data element to get the sibling value. nothing works. Any help appreciated. Thanks
var text = $(this).parent().find(".content-block-heading").text();
console.log(text);
var text1 = $(this).siblings(".content-block-heading").text();
console.log(text1);
The rule is getting trigger when the link click happens

