Found that the textarea in html cannot get focus! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:22
Original
1531 people have browsed it

HTML Bootstrap dialog box

The process is like this, I used the modal dialog box in the bootstrap framework! . . In this simulation dialog box, I have a button that calls another modal dialog box, and there is a textarea in the second modal dialog box, but I don’t know why this textarea can’t get focus and changes it to This text box cannot get focus either!
What’s even weirder is that if you close the second dialog box and then open it again, the textarea/text box can actually gain focus again!

It’s probably a focus issue! Can anyone help me solve this problem? Kneel down and thank you!

Reply to the discussion (solution)

Has anyone encountered this problem in the middle of the night or knows how to solve it? Please help! Thank you!

Has anyone encountered this problem in the middle of the night or knows how to solve this problem? Please help! Thank you!
Before giving focus to the textarea, determine whether it exists


Has anyone encountered this problem in the middle of the night, or knows how to solve this problem? Please help! Thank you!
Determine whether textarea exists before giving it focus. What does this mean? Can you give an example? This textarea box is clearly displayed there! But I can't enter anything when I click on it, and the cursor doesn't appear!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template