basic nyromodal functionality not working

2019-09-04 08:22发布

I am unable to get nyroModal to work.

this is my code

HTML:

<a href='/<path>' class='nyroModal'>Click Here</a>

JS:

$(function() {
  $('.nyroModal').nyroModal();
});

When I clicked on "Click here" it just opens in a new window.

note: jquery : 1.4.4

2条回答
【Aperson】
2楼-- · 2019-09-04 09:11

Did you add the link filter on nyroModal?
It's required in order to make a cliquable anchor to work with nyroModal

查看更多
别忘想泡老子
3楼-- · 2019-09-04 09:15

Go to: http://nyromodal.nyrodev.com/

Click on:

Create your own build

Make sure that Link filter is selected

In downloaded files you will find file jquery.nyroModal.custom.min.js that should have this line:

jQuery(function ($, undefined) { $.nmFilters({ link: { is: function (nm) ...
查看更多
登录 后发表回答