Comment Point "Reply" to the current content to reply to the content of the textarea, and at the beginning of the sentence to get the cursor resolution method

Source: Internet
Author: User
Comment Point "Reply" to the current content to reply to the content of the textarea, and at the beginning of the sentence to get the cursor
It's like a connection.
Http://v.youku.com/v_show/id_XNDAwODQ0OTY4.html
Content added to the Ftextarea, I will, but after the addition of the text, the beginning of the sentence to get the cursor I will not.

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

This is obtained by the end of the sentence.

------Solution--------------------
PHP code
insertadjacenttext inserts the given text at the specified location. Syntaxobject.insertadjacenttext (Swhere, stext) Parametersswhere Required. String that specifies where to insert the text, using one of the following values:beforebegin inserts the text Immediatel Y 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. In the manual. 
------Solution--------------------
Reference Post http://topic.csdn.net/u/20120329/09/ e12eb48a-aa5f-4f99-84de-189b34f9e285.html
# # of replies.
------Solution--------------------
Reply

to pass in the ID, can you?

  • 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.