Hallo,
ich habe folgendes Script , dass funktioniert:
Nun möchte ich, dass 'Ergebnis' in ein Formular geschrieben wird:
Leider klappt das irgendwie nicht. Kann mir jemand weiterhelfen?
Danke und Gruß, Pingponguin
ich habe folgendes Script , dass funktioniert:
Code:
<script type="text/javascript"> $(document).ready(function() { // define your own settings var mySettings = { rows: 2, cols: 2, language: 'de', success: { callback: function(results) { document.getElementById('Ergebnis').innerHTML =( results.moves + ' Zügen und ' + results.seconds + ' Sekunden.'); } } }; // define your own texts var myTexts = { secondsLabel: 'Sek.' }; // call jqPuzzle with mySettings and myTexts on images with class 'myPics' $('.myPics').jqPuzzle(mySettings, myTexts); }); </script>
Code:
<input type="text" id="Editbox2" style="position:absolute;line-" name="Ergebnis" value="" autocomplete="off"> <script type="text/javascript"> $(document).ready(function() document.getElementById('Editbox2').value = (id='Ergebnis') </script>
Danke und Gruß, Pingponguin
Kommentar