Answer the question
In order to leave comments, you need to log in
How to add a name to the comment box?
How can I make it so that after clicking the "reply to comment" button, a field for entering a comment appears under the comment with the name of the user whose comment is being answered?
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Dynamically create textarea on click. After that, enter the name
textarea.textContent = userName into it with a script.
userName is taken from the corresponding DOM node. There is no more specific answer to the question.
Well... you make up input fields. By clicking on "reply" you are looking for the username in this block.
General outline:
var name = $('this').parents('.comment').find('.commenter_name');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question