Weis wer wieso dieser HTML code nicht auf Jimdo funktioniert?

... komplette Frage anzeigen

2 Antworten

Poste den Code mal hier rein. Wir haben keinen Zugriff bei deinem Link.

Antwort bewerten Vielen Dank für Deine Bewertung
Kommentar von fasaso
15.03.2016, 11:57

mein Fehler :D

http://pk-inventar.jimdo.com/hilfe/

<html>  <head>  <script language="javascript" type="text/javascript"> function incrementCount() { document.frm.count.value = parseInt(document.frm.count.value) + 1; addTextBox(); } function decCount() { document.frm.count.value = parseInt(document.frm.count.value) - 1; removeTextBox(); } function addTextBox() { var form = document.frm; form.appendChild(document.createElement('div')).innerHTML = "<table width=\\"40%\\">" + "<tr><td>Name</td><td><input type=\\"text\\" name=\\"txt\\"></td></tr>" + "</table>"; } function removeTextBox() { var form = document.frm; if (form.lastChild.nodeName.toLowerCase() == 'div') form.removeChild(form.lastChild); } </script>  <body>  <table width="40%" border="1">  <form name="frm">  <tr>  <td>Name:  </td>  <td><input type="text" name="count" value="0" readonly ></td> <td><INPUT type="button" value="ADD" name="add" onClick="incrementCount()"></td> <td><INPUT type="button" value="Remove" name="remove" onClick="decCount()"></td>  </tr>  </table>  </form>  </body>  </html>

0

Den Code können wir uns so nicht ansehen, wir haben darauf keinen Zugriff.

Antwort bewerten Vielen Dank für Deine Bewertung
Kommentar von fasaso
15.03.2016, 11:57

mein Fehler :D

http://pk-inventar.jimdo.com/hilfe/

<html>  <head>  <script language="javascript" type="text/javascript"> function incrementCount() { document.frm.count.value = parseInt(document.frm.count.value) + 1; addTextBox(); } function decCount() { document.frm.count.value = parseInt(document.frm.count.value) - 1; removeTextBox(); } function addTextBox() { var form = document.frm; form.appendChild(document.createElement('div')).innerHTML = "<table width=\\"40%\\">" + "<tr><td>Name</td><td><input type=\\"text\\" name=\\"txt\\"></td></tr>" + "</table>"; } function removeTextBox() { var form = document.frm; if (form.lastChild.nodeName.toLowerCase() == 'div') form.removeChild(form.lastChild); } </script>  <body>  <table width="40%" border="1">  <form name="frm">  <tr>  <td>Name:  </td>  <td><input type="text" name="count" value="0" readonly ></td> <td><INPUT type="button" value="ADD" name="add" onClick="incrementCount()"></td> <td><INPUT type="button" value="Remove" name="remove" onClick="decCount()"></td>  </tr>  </table>  </form>  </body>  </html>

0

Was möchtest Du wissen?