1

我在让 jqmodal 模态对话框显示在客户端代码动态添加的链接上时遇到问题。我已经在以下 URL 演示了这个问题:http: //www.neil-burton.co.uk/jqmodaltest/index.htm

任何帮助,将不胜感激

4

1 回答 1

2

您可以将.live用于锚点点击事件

再次更新

  $('#dialog').jqm({ajax:'@rel'});

  // open the modal whenever anchor links on the page are clicked
  $('a.someClass').live('click',function(){
      $('#dialog').jqmShow(this);
  });
于 2009-09-02T08:55:33.247 回答