- Posts: 10241
- Thank you received: 3644
Ask the community, share ideas, and connect with other LimeSurvey users!
Sometimes I feel a kind of {nostalgia}...tpartner wrote: Do you have the correct identifier for the input ('#answer858668X1963X50568')?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); $('#movenextbtn').hide(); // Check the initial value of the age question if($('input.text', thisQuestion).val() != '' && $('input.text', thisQuestion).val() < 18){ $('#movenextbtn').show(); } // A listener on the age question $('input.text', thisQuestion).on('keyup change paste', function() { setTimeout(function() { if($('input.text', thisQuestion).val() != '' && $('input.text', thisQuestion).val() < 18){ $('#movenextbtn').show(); } else { $('#movenextbtn').hide(); } }, 100); }); }); </script>