When commenting, "reply" adds the content to be replied to the current content to textarea, and obtains the cursor solution at the beginning of the sentence.

Source: Internet
Author: User
When commenting, "reply" adds the content to be replied to the current content to textarea, and obtains the cursor at the beginning of the sentence as a connection. $ ('# Comment'). during The focus () comment, "reply" adds the content to be replied to the current content to textarea, and obtains the cursor at the beginning of the sentence.
Just like a connection
Http://v.youku.com/v_show/id_XNDAwODQ0OTY4.html
Content is added to ftextarea, I will, but after the text is added, I won't get the cursor at the beginning of the sentence.

$ ('# Comment'). focus ();

The result is obtained at the end of the sentence.

------ Solution --------------------
PHP code
InsertAdjacentText inserts the specified text at the specified position. Syntaxobject. insertAdjacentText (sWhere, sText) ParameterssWhere Required. string that specifies where to insert the text, using one of the following values: beforeBegin Inserts the text immediately before the element. afterBegin Inserts the text after the start of the element but before all other content in the element. beforeEnd Inserts the text immediately before the end of the element but after All other content in the element. afterEnd Inserts the text immediately after the end of the element. sText Required. String that specifies the text to insert. Manual ..
------ Solution --------------------
Reference Post http://topic.csdn.net/u/20120329/09/e12eb48a-aa5f-4f99-84de-189b34f9e285.html
#7.
------ Solution --------------------
Reply

Can I upload the id?

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.