I have an Express.js application and I would like to know how I can persist form data (text area) after a post request without using AJAX .
I hope I am not vague. Thanks in advance.
The default value of a textarea
is the child text node inside it. Copy the data into there, and put it in the response you make to the submission request:
<textarea name="foo">HTML escaped copy of the previously submitted foo</textarea>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.