How to load ajax lightbox using Fancybox3 & amp; jquery without data attributes

advertisements

A question from noob.

I have a link

<a href="/page.html">Link</a>

I have a page.html

<div id="one">
<div id="two">
something
</div>
</div>

How to load #two div using Fancybox3 ajax lightbox without changing link through adding data-attributes like "data-fancybox" or "href=" to "data-src=" override.

Sorry for my englando :)


You can add custom click event to your link and then open fancybox manually.