EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 03:49:50 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
combo 控件点击选择后, 焦点丢失的问题
Pages: [
1
]
« previous
next »
Print
Author
Topic: combo 控件点击选择后, 焦点丢失的问题 (Read 8136 times)
iamjxc
Jr. Member
Posts: 80
combo 控件点击选择后, 焦点丢失的问题
«
on:
March 13, 2014, 12:31:40 AM »
combobox, combotree 等, 点击选择后, panel会关闭, 但是没有把焦点给 text 框, 导致焦点丢失
用户按 tab 键不能跳到下一个录入项里
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: combo 控件点击选择后, 焦点丢失的问题
«
Reply #1 on:
March 13, 2014, 08:05:42 AM »
Please try this:
Code:
$('#c1').combobox({
onSelect:function(){
$(this).combobox('textbox').focus();
}
})
Logged
iamjxc
Jr. Member
Posts: 80
Re: combo 控件点击选择后, 焦点丢失的问题
«
Reply #2 on:
March 16, 2014, 07:54:32 PM »
当选中相同的项目时, onSelect , onChange 都没有触发, 改在 onHidePanel 里调用
$(this).combobox('textbox').focus();
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...