当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - What are the best JQuery plugins for boxes with a close button?

问题描述:

Just a regular box on a page. When the user clicks the close button , it disappears.

网友答案:

jQueryUI has a pretty well featured dialog box:

jQuery UI - Dialog

There's also blockUI:

jQuery BlockUI Plugin (v2)

网友答案:

You mean like jQueryUI dialogs?

网友答案:

No need for a plugin.

$('#box a.close').click(function(){
  $(this).closest('#box').remove();
});
网友答案:

Is it really that hard to implement in JavaScript?

<a onclick="this.parentNode.parentNode.removeChild(this.parentNode);">X</a>
分享给朋友:
您可能感兴趣的文章:
随机阅读: