iziModal
iziModal copied to clipboard
Confusing manual for first timer
When I first installed the module, I thought that correct way of opening a modal window is:
$('#modal').iziModal('open');
But in reality, only this code worked:
var modal = $('#modal').iziModal();
modal.iziModal('open');
Maybe it's worth changing the instructions a bit to reflect this?
or you can create a button and add data attributes e.g
<button data-izimodal-open="#modal">Open Modal</button>
Which is the easiest way imo
I need to invoke the modal window from a javascript function. The normal "button" way doesn't work for me.