Tuesday 23 May 2017

How to close Fancybox on anchor or button click

How to close Fancybox on anchor or button click

Nothing special to achieve this just siply write the fancybox close script inline with your tag just like

<a href="javascript:void(0)" onclick="$.fancybox.close();">Close</a>

or

<button onclick="$.fancybox.close();">Close</button>

banner
Previous Post
Next Post

0 comments: