没有出现Dialoge Box [英] Dialoge Box is not appear
问题描述
亲爱的专家,
在我的项目中,我使用了Zebra Dialog。
点击此处以获取Zebra Dialog示例。
Every事情工作正常,期待一个条件。
以下是打开弹出窗口的代码
< pre lang =HTML> < a href = javascript:void(0) id = < span class =code-keyword> open-popup > 点击此处< / a >
我需要制作以上链接动态..
所以我使用了追加方法使用javascript ..
$(< span class =code-string> #test)。append(' < a href =javascript:void(0)id =open-popup>点击此处< / a>');
当我在documet ready函数中使用上面的代码时..
然后它正在工作很好....
但是
当我在ajax sucess事件中使用追加代码时,然后它不工作..意思是,
链接打印正确,但是当我点击链接时弹出窗口没有显示....
请帮我纠正..
谢谢和问候,
Dileep
( #test)。append(' < a href =javascript:void(0)id =open-popup>点击此处< / a>' );
当我在documet ready函数中使用上面的代码时..
然后它工作正常....
但是
当我使用追加时在ajax sucess事件中的代码,然后它不工作..意味着,
链接打印正确,但是当我点击链接时弹出窗口没有出现....
请帮我纠正..
谢谢和问候,
Dileep
你好,
试试这个解决方案
add class class = testPopupin:
(#test)。append('< href =javascript:void(0)class =testPopupid =open-popup> click here');
Dear Expert,
In my project i have used a "Zebra Dialog" .
Click here to go Zebra Dialog examples.
Every thing is working fine expect one condition.
Here is the below code to open a popup
<a href="javascript:void(0)" id="open-popup">click Here</a>
I need to produce the above link dynamic..
So i have used append method using javascript..
$("#test").append('<a href="javascript:void(0)" id="open-popup">click Here</a>');
when i used the above code in documet ready function..
Then it is working fine....
BUT
When i used the append code inside the ajax sucess event, then it is not working.. means,
the links are printed correctly, but the popup is not appear when i click the link....
Please help me to correct it..
Thanks and regards,
Dileep
("#test").append('<a href="javascript:void(0)" id="open-popup">click Here</a>');
when i used the above code in documet ready function..
Then it is working fine....
BUT
When i used the append code inside the ajax sucess event, then it is not working.. means,
the links are printed correctly, but the popup is not appear when i click the link....
Please help me to correct it..
Thanks and regards,
Dileep
Hello,
Try this solution
add class class="testPopup" in :
("#test").append('< href="javascript:void(0)" class="testPopup" id="open-popup">click Here');
这篇关于没有出现Dialoge Box的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!