jQuery Popup on button click instead of link navigation

By Brij Mohan

I see there are a lot of jQuery popups. Mostly work on link navigation means when you click on link then it will show popup. Suppose you want to show popup on button click then here is the simple trick to do this. I take fancybox jquery popup for example. This will call ajax.php. For this, I take a link,set display none and trigger it on button click.