94451
Jul 06, 2012
3011
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: April 26, 2024 at 18:04 o'clock
2 Comments
Latest comment