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
Release: 2016-05-16 19:11:09
Original
1427 people have browsed it

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. . .


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