What are the best JQuery plugins for boxes with a close button? [closed]
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 questionJust 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>
精彩评论