basic nyromodal functionality not working

半腔热情 提交于 2019-12-25 00:06:02

问题


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


回答1:


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




回答2:


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) ...


来源:https://stackoverflow.com/questions/5262048/basic-nyromodal-functionality-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!