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

Help with video #26

Closed ciancastillo closed 10 years ago

ciancastillo commented 10 years ago

Hello,

I can't get this working. Can anyone point me to the right direction? Thanks!

var self = $(this) //button , content = $('.content');

    $('element_to_pop_up').bPopup({
        onOpen: function() {
            content.html(self.data('bpopup') || '');
        },
        onClose: function() {
            content.empty();
        }
    });
dinbror commented 10 years ago

I need to see your button markup as well. What have you saved on data-bpopup?

dinbror commented 10 years ago

No reply and I think it's a coding issue in general