如何将按钮聚焦在弹出其他模态弹出窗口的模态弹出窗口中 [英] How to focus button in a modal pop up above other modal pop up

查看:69
本文介绍了如何将按钮聚焦在弹出其他模态弹出窗口的模态弹出窗口中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个模态弹出窗口。当我单击模态弹出窗口中的按钮时,会显示另一个模态弹出窗口。在第二个弹出窗口中,只有一个按钮。在第一个弹出窗口中,所有控但是当第二个弹出窗口显示时,唯一的按钮不会集中在加载上。在第一个弹出窗口中,我正在使用Slick Upload控件。所以在通过上传器上传任何文件后,只有第二个弹出窗口中的按钮

无法获得焦点。

请帮我解决这个问题。

I have a Modal Pop up . When I click on a button in the Modal Pop Up, another Modal Pop Up shows up.In second popup there is only one button. In first popup all controls get focus. But when second popup shows the only button does not get focus on load. In first popup I am using Slick Upload control. So after uploading any file through uploader only the button in second popup
does not get focus.
Please help me to solve this.

推荐答案

您可以使用JavaScript .focus()函数将输入焦点设置在某个控件上:http://www.w3schools.com/jsref/met_html_focus.asp [ ^ ]。



但是,将一个对话框堆叠在另一个对话框之上的想法真的很糟糕你需要检查你的设计。



-SA
You can use JavaScript .focus() function to set the input focus on some control: http://www.w3schools.com/jsref/met_html_focus.asp[^].

However, the idea of stacking one dialog on top of another one is really bad. You rather need to review your design.

—SA


这篇关于如何将按钮聚焦在弹出其他模态弹出窗口的模态弹出窗口中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆