I need help here I'm using this in js
$('#popup').sfPopup({
text: 'Would You like to close this popup?',
buttons: ['Yes', 'No'],
defaultFocus: 1, // index of default focused button. this indicates array index of 'buttons' option (zero-based)
callback: function (selectedIndex) {
alert('selected button index: ' + selectedIndex);
}
});
$('#popup').sfPopup('show');
};
and this in html
<div id='popup'></div>
i found this example here
but it's not working what I missed?