- Posts: 9
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
...<p>Möchten Sie die Umfrage abschließen?</p> <p id="demo"> </p> <input id="numb" /><button onclick="myFunction()" type="button">PIN</button> <script type="text/javascript" charset="utf-8"> var x, text="Geben Sie bitte eine Antwort an."; function myFunction() { // Get the value of the input field with id="numb" x = document.getElementById("numb").value; document.getElementById("demo").innerHTML = text; } $(document).ready(function() { // Hide the submit button $('#ls-button-submit').hide(); // Listener on the yes/no answers $('#question{QID} input:radio').on('change', function(e) { if($('#question{QID} input:radio:checked:eq(0)').val() == 'Y') { if ( x == 1234 ) { text = "Auf Wiedersehen!"; $('#ls-button-submit').fadeIn(500); } else { text = "Falsches Code"; } } else { $('#ls-button-submit').fadeOut(500); } }); }); </script>
.disable-irrelevant.ls-irrelevant.ls-hidden{display:block;} .disable-irrelevant.ls-irrelevant .form-control{background-color: #eee;cursor: not-allowed;} .no-question{border-top:0;} .no-question .question-title-container{display:none;} .no-question .question-valid-container{display:none;} .no-bottom{border-bottom:0;margin-bottom:0;} .no-question .answer-container { padding-top: 0em; padding-bottom: 0.5em; } .no-bottom .answer-container { /* padding-top: 0em;*/ padding-bottom: 0em; }
Nein, das war er nicht.aber ich weisse nicht ob dein Kommentar sarcastisch war.