dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

Unable to start with it #72

Closed gitusand3 closed 7 years ago

gitusand3 commented 7 years ago

How to open popup when a button is clicked? Is not included in the manual. I add $('.pop1').bPopup();` in js file, so what?

in my .js file i added $('.pop1').bPopup();

here is the button and the content that must be opened in popup at click

<span class="button small pop1">PopitUp</span>

<div class="modal-content">
    i am modal content to appear when PopitUp is clicked
</div>

thanks

gitusand3 commented 7 years ago

i found it here http://dinbror.dk/blog/bPopup/