问题描述:

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>
相关阅读:
Top