Home Backend Development PHP Tutorial 评论时点 “回复” 把当前内容要回复的内容添冲到textarea里,并在句首得到光标解决方法

评论时点 “回复” 把当前内容要回复的内容添冲到textarea里,并在句首得到光标解决方法

Jun 13, 2016 am 10:26 AM
element text the

评论时点 “回复” 把当前内容要回复的内容添冲到textarea里,并在句首得到光标
就像个连接一样
http://v.youku.com/v_show/id_XNDAwODQ0OTY4.html
内容添冲到ftextarea里,我会,但是要在添冲文字后,句首得到光标我不会。

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

这样得到的是句尾得到的。

------解决方案--------------------

PHP code
insertAdjacentText 在指定位置插入给定的文本。 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. 手册上的。。<br><font color="#e78608">------解决方案--------------------</font><br>参考帖子 http://topic.csdn.net/u/20120329/09/e12eb48a-aa5f-4f99-84de-189b34f9e285.html<br>#7 的回复。<br><font color="#e78608">------解决方案--------------------</font><br><a href="#" onclick="VideoComments.reply(373323281,'4fbce32ef0b7e2a929000000','4fbce32ef0b7e2a929000000',false);return false;">回复</a><br><br>把id传进去,不也可以?<br><br><div class="clear">
                 
              
              
        
            </div>
Copy after login
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to modify element.style How to modify element.style Nov 24, 2023 am 11:15 AM

Methods for element.style to modify elements: 1. Modify the background color of the element; 2. Modify the font size of the element; 3. Modify the border style of the element; 4. Modify the font style of the element; 5. Modify the horizontal alignment of the element. Detailed introduction: 1. Modify the background color of the element, the syntax is "document.getElementById("myElement").style.backgroundColor = "red";"; 2. Modify the font size of the element, etc.

After 2 months, the humanoid robot Walker S can fold clothes After 2 months, the humanoid robot Walker S can fold clothes Apr 03, 2024 am 08:01 AM

Editor of Machine Power Report: Wu Xin The domestic version of the humanoid robot + large model team completed the operation task of complex flexible materials such as folding clothes for the first time. With the unveiling of Figure01, which integrates OpenAI's multi-modal large model, the related progress of domestic peers has been attracting attention. Just yesterday, UBTECH, China's "number one humanoid robot stock", released the first demo of the humanoid robot WalkerS that is deeply integrated with Baidu Wenxin's large model, showing some interesting new features. Now, WalkerS, blessed by Baidu Wenxin’s large model capabilities, looks like this. Like Figure01, WalkerS does not move around, but stands behind a desk to complete a series of tasks. It can follow human commands and fold clothes

What currency is THE? Is THE coin worth investing in? What currency is THE? Is THE coin worth investing in? Feb 21, 2024 pm 03:49 PM

What currency is THE? THE (Tokenized Healthcare Ecosystem) is a digital currency that uses blockchain technology to focus on innovation and reform in the healthcare industry. THE coin's mission is to use blockchain technology to improve the efficiency and transparency of the medical industry and promote more efficient cooperation among all parties, including patients, medical staff, pharmaceutical companies and medical institutions. The Value and Characteristics of THE Coin First of all, THE Coin, as a digital currency, has the advantages of blockchain - decentralization, high security, transparent transactions, etc., allowing participants to trust and rely on this system. Secondly, the uniqueness of THE coin is that it focuses on the medical and health industry, using blockchain technology to transform the traditional medical system and improve

How to check the latest price of The Sandbox coin? How to check the latest price of The Sandbox coin? Mar 05, 2024 am 11:52 AM

How to check the latest price of TheSandbox currency TheSandbox is a decentralized gaming platform built on the Ethereum blockchain. Land, assets and gaming experiences can be purchased using its native token SAND. The steps to check the latest price of SAND are as follows: Choose a reliable price check website or app. Some commonly used price query websites include: CoinMarketCap: https://coinmarketcap.com/Coindesk: https://www.coindesk.com/Binance: https://www.binance.com/ Search on the website or app SAND. View SAND

How to check the latest price of The Graph coin? How to check the latest price of The Graph coin? Mar 05, 2024 am 09:55 AM

How to check the latest price of TheGraph coin? TheGraph is a decentralized protocol designed to provide efficient indexing and query services for blockchain data. The protocol is designed to make it easier for developers to build and launch decentralized applications (dApps), and to provide these applications with convenient access to blockchain data. To check the latest price of TheGraph Coin (GRT), you can follow these steps: Choose a reliable price checking website or app. Some commonly used price query websites include: CoinMarketCap: https://coinmarketcap.com/Coindesk: https://www.coind

How to check the market value of The Graph coin? How to check the market value of The Graph coin? Mar 13, 2024 pm 10:43 PM

How to Check TheGraph Coin Market Cap TheGraph is a decentralized protocol designed to help developers index and query blockchain data. Its token GRT is used to pay network fees and reward node operators. How to check the market value of TheGraph currency: Choose a reliable website or platform: There are multiple websites and platforms that provide cryptocurrency market value information, such as CoinMarketCap, CoinGecko, Feixiaohao, etc. It is important to choose a reliable website or platform to ensure you are getting accurate information. Search for TheGraph: Search for GRT or TheGraph on the website or platform. View Market Cap: TheGraph’s market cap is often shown in search results. Tip: market capitalization

Samsung's new foldable screen product exposed, expected to debut in late July Samsung's new foldable screen product exposed, expected to debut in late July Mar 21, 2024 pm 02:16 PM

Samsung plans to launch a new generation of Galaxy Z Fold and Flip 6 series folding screen smartphones in the second half of this year. Recently, Korean media TheElec and &quot;Jiji Weekly e&quot; revealed more details about these two new products. Samsung Galazy Z Fold6 leaked pictures. Source @chunvn8888 According to TheElec, Samsung Electronics’ supply chain manufacturers are expected to start the production of Galaxy Z Fold6 and Flip 6 related components in early May. In contrast, the production of parts for Galaxy Z Fold5 and Flip 5 started in the second half of May last year. This means that this year’s release schedule for the standard version of the Galaxy Z series is about two to three weeks earlier than last year. go

Logitech Enterprise Desktop Configuration White Paper Logitech Enterprise Desktop Configuration White Paper Jul 24, 2024 pm 01:54 PM

Recently, I read the enterprise desktop configuration white paper produced by Logitech in the first half of the year. The knowledge and purchasing logic involved in enterprise-level desktop peripherals gave us a lot of inspiration. Many of these fresh viewpoints are very suitable to be shared with old fans of Zhongguancun. Logitech White Paper: New Thoughts on Purchasing Desktop Peripherals As a leader in the field of desktop peripherals, Logitech’s brand strength and technological innovation are obvious to all. The significance of the release time of the white paper The release time of Logitech’s white paper coincides with the transformation of corporate office models. The popularity of hybrid office models poses new challenges for employer branding and talent attraction. New Trends in Desktop Peripheral Purchasing Previous desktop peripheral purchasing standards may have been too simplistic. Employees in different positions have significantly different needs for keyboards, mice, headsets and cameras. Perspectives in Logitech White Paper Logitech White

See all articles