Home > Web Front-end > JS Tutorial > Click on the reply below other people's posts in the forum, and the reply title will change to 'Reply to the post of 24#'_javascript skills

Click on the reply below other people's posts in the forum, and the reply title will change to 'Reply to the post of 24#'_javascript skills

WBOY
Release: 2016-05-16 18:51:35
Original
1564 people have browsed it

My method

Copy code The code is as follows:

Reply
document.getElementById('body').focus()//Set mouse focus
document.getElementById('title').value//Set the value of title, you can also document.getElementById('title') .innertext

JQUERY
Copy code The code is as follows:

function cmtreply(name)
{
$("#content").val('reply' name ':');
window.location.hash="#cmt_form" ;
$("#content")[0].focus();
}

Related labels:
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