简体   繁体   English

关闭弹出式(div)jQuery

[英]Close popup (div) jquery

I have a div which appears when a textbox gets focus. 我有一个div,当文本框获得焦点时出现。 DIV has n number of textboxes. DIV有n个文本框。 I want to say display:none when a user Clicks anywhere in the window. 我想说的是display:none,当用户单击窗口中的任何位置时。 Div should not close if the user is switching between textboxes. 如果用户在文本框之间切换,则Div应该不会关闭。

All these jquery plugins, say the calendar control closes if user clicks outside. 所有这些jquery插件,例如,如果用户在外部单击,日历控件将关闭。 How is that happening? 这是怎么回事? Any idea? 任何想法?

您可以使用“模态对话框”实现来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM