94451
Jul 06, 2012
3014
2
0
Javsacript u. HTML-Codes
Hallo ich habe ein Problem mit innerHTML auslesen und der weiterverarbeitung!
hier mal ein kurzer Versuchsaufbau:
wie stelle ich es an das der Text der im inputfeld steht nicht als HTML code angezeigt wird sondern in diesen fall als LEERZEICHEN!
Vielen Dank für eure Hilfe!
Beste Grüße
RoadRunner
<script>
function mk() {
rd = document.getElementById('read');
wr = document.getElementById('write');
wr.value = rd.innerHTML;
}
</script>
<body onload="mk()">
<div id="read"> </div>
<input type="text" id="write" >
</body>
wie stelle ich es an das der Text der im inputfeld steht nicht als HTML code angezeigt wird sondern in diesen fall als LEERZEICHEN!
Vielen Dank für eure Hilfe!
Beste Grüße
RoadRunner
Please also mark the comments that contributed to the solution of the article
Content-Key: 187570
Url: https://administrator.de/contentid/187570
Printed on: May 7, 2024 at 12:05 o'clock
2 Comments
Latest comment