开发者

cursor is locked in the <input> when browsing in Nokia E72

开发者 https://www.devze.com 2023-01-21 18:36 出处:网络
I developed a simple web app in the browser开发者_开发知识库 where there are 3 input boxes .The first input box has a ajax search suggestion box drop down when user starts keying in something.For exam

I developed a simple web app in the browser开发者_开发知识库 where there are 3 input boxes . The first input box has a ajax search suggestion box drop down when user starts keying in something. For example, the first input box is for user to key in username, when user key in "alan", a dropdown-like suggestion box will show below the input box to show top 5 usersname contain the word "alan", the list is query from a sql server. After user select one of the username from the list, the user name is displayed in the input box, this is working fine.

But the problem is that after user selected the username from the dropdown-like list of usernames, the cursor is locked in the first input box and not able to move out from this input box. I've tried to set the focus to 2nd inputbox by putting in document.getElementbyID("secondinputboxid").focus hope but it doesn't set the focus to the second input box, really need help here.

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消