通过编程删除焦点? [英] Remove focus programmatically?

查看:146
本文介绍了通过编程删除焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jquery UI对话框,动态加载/ JSON的内容。由于复杂性,我不能真正发布小提琴或相关的代码(太多的代码)。

发生什么事情是,当对话框打开时,您可以选项卡通过对话框中的元素,直到第一个选项卡。之后,你不能通过任何其他地方。焦点锁定在该选项卡上,即使您在其他地方单击,焦点锁定在该选项卡上。



我无法找到此问题的实际原因。

那么,我将如何以编程方式移除焦点? 解决方案

这可能有助于...



http:// api .jquery.com / blur /

  $('#tabName')。blur(); 


I have a jquery ui dialog with tabs loaded dynamically/JSON with content. Due to the complexity, I can't really post a fiddle or a relevant code (too much code).

What's happening is that when the dialog opens, you can tab through the elements within the dialog, up to the first tab. After that, you cannot tab through to anywhere else. The focus is locked on that tab, even if you click elsewhere, that focus is locked on that tab.

I am unable to locate the actual cause of this issue.

So, how would I remove the focus programmatically?

解决方案

This might help...

http://api.jquery.com/blur/

$('#tabName').blur();

这篇关于通过编程删除焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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