我有这个NyroModal:NyroModal不工作添加链接与jQuery
$('.openModal').nyroModal();
然后,我有我的链接:
<a href="#sample" class="openModal">this is a test</a>
这个伟大的工程,它加载我的样态像它应该,但是当我使用添加一个链接
$("#mydiv").html('<a href="#sample" class="openModal">this is a test</a>');
它不工作,我已经试过这
$('.openModal a').live('click',function(e) {
e.preventDefault();
$(this).nyroModalManual();
return false;
});
这:
$('.openModal a').live('click',function(e) {
e.preventDefault();
$(this).nmManual("#sample");
return false;
});
但我没有任何运气,你能想到的任何东西我可以试试吗?我究竟做错了什么?
谢谢!
更新:我忘了提,我没有得到任何错误都在我的控制台
更新2:现在我得到这个错误,现在我正确选择它:
Uncaught TypeError: Object [object Object] has no method 'nyroModalManual'
嗨corn_dog,谢谢您的回复,我已经尝试过了,它似乎的确,我没有选择正确的元素。但是,我现在收到一个错误,我更新了我的问题和它的意思。再次感谢 –