Google Chrome's HTML text box automatically loses the cursor

Source: Internet
Author: User

Today, when my lab colleagues developed a web project, they encountered a very strange problem. They tried their best to find the answer and finally found that it was related to the browser. However, the further reason was not found. I hope some experts can help me solve the problem.

JSP is used for project development,Google Chrome: 27.0.1453.116 

In JSP, there are the followingCode:

<Form ID = "leveltbledit"> <input type = "hidden" name = "leveltbl. oldlevelno "/> <Div class =" MTB "> role No.: <input type =" text "name =" leveltbl. leveltblpk. levelno "class =" box2 "/> role name: <input type =" text "name =" leveltbl. levelname "class =" box2 "/> <input type =" button "value =" save "onclick =" javascript: Edit (); "/> </div> </form>

Strange problem:Put these lines of code on the JSP page, open it in Google browser, click the second text box, And the cursor automatically jumps to the first text box. The same Code is normal in IE browser.

Hope!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.