- Posts: 9
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // A list of the "Mothercodes" var codes = ['abc123', 'abc124', 'abc125', 'abc126']; // A function to hide/show the "Next" button function handleNext() { $('#movenextbtn, #movesubmitbtn').hide(); if($.inArray($.trim($('#question{QID} input[type="text"]').val()), codes) >= 0) { $('#movenextbtn, #movesubmitbtn').show(); } } // Initial state handleNext(); // Listener on the text input $('#question{QID} input[type="text"]').on('keyup change', function(i) { handleNext(); }); }); </script>