开发者

What are the best JQuery plugins for boxes with a close button? [closed]

开发者 https://www.devze.com 2023-02-04 07:55 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 8 years ago.

Improve this question

Just a regular box on a page. When the user clicks开发者_如何学Go 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消