marcelodolza/iziModal

using multiple trigger for one modal?

Zebraslive opened this issue · 0 comments

$('.trigger-iFrame-4').click(function(event) {
      var xiiurkl = $(this).attr('href');
  event.preventDefault();
  $('#modal-iFrame-4').iziModal('open'); 
            
          $("#modal-iFrame-4").iziModal({
  title: 'Opening an external content',
  subtitle: xiiurkl,
  fullscreen: true,
  headerColor: 'rgb(51, 76, 123)',
  overlayColor: 'rgba(0, 0, 0, 0.4)',
  iconColor: '',
  iconClass: 'icon-chat',
  iframe: true,
  iframeHeight: 800,
  iframeURL: xiiurkl,
  width: 800,
});
});

xiiurkl returns the same href everytime. I have multiple elements using the trigger class but it only works for the first click. then it just returns the same href after that for all elements.