skip to Main Content

Get id value if click on span element inside – Jquery

It is possible with jQuery to get value of ID of pop-up-custom which is ideation if user click on <span> element which is nested inside pop-up-custom class ? <div class="elementor-element pop-up-custom" id="ideation" data-widget_type="eael-lightbox.default"> <div class="elementor-widget-container"> <div data-lightbox-type="lightbox_type_custom_html" data-lightbox-type-url="" data-lightbox-trigger-pageload="1" data-lightbox-closebtn-color="#ffffff"…

VIEW QUESTION

Remove strong tag inside hyperlink with JQuery

I'm trying to remove the tag inside this HTML but can't seem to work out how: <p>This is his: “<u><a href="https://secure.nm.com/"><strong>Fourth and Final Prediction</strong></a></u>.”</p> I've tried this but it's not working - where am I going wrong? $("a:has(strong)").each(function() { $(this).replaceWith($(this).children());…

VIEW QUESTION
Back To Top
Search