Home >Web Front-end >JS Tutorial >Use innerHTML: How to give the ampersand symbol to the text box and it will become &_javascript skills

Use innerHTML: How to give the ampersand symbol to the text box and it will become &_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:11:091423browse

Thanks, everyone below, the original problem has been solved. Now there is a small problem that I don’t know how to solve.
If it is an ampersand, when it is passed to the text box, it will become & How to solve it? The effect is as follows

has been solved. . . Replace innerHTML with childNodes[0].nodeValue and the problem will be solved. . .


Statement:
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