Let me help you to see how to get the focus of this text box.

Source: Internet
Author: User
You can help me to see how to get the FCK for editing the focus text in this text box. this is the result of viewing the source code on the HTML page: HTMLcode & lt; tdwidth & quot; 100% & quot; id & quot; arcBody & quot; & gt; & lt; inputtype & quot; hidden & quot; id & quot; body & quot, how to get the focus of this text box
The FCK is used for text content editing. this is the result of viewing the source code on the HTML page:
HTML code
                        


When opening the page, I want to get the focus of the text editor and place the cursor in it. How can I implement it using JS. Thank you.

------ Solution --------------------
This is complicated and requires the js functions provided by FCK.
In the FCK example, there is a detailed demonstration of various operations such as positioning, reading, inserting, appending, and replacing.

If your FCK does not contain the _ samples or _ testcases Directory, download a complete version.
------ Solution --------------------
$ ("# Body"). focus ();

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.