- Posts: 19
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
<button class="btn btn-success" id="button1" onclick="dateevent1()" type="button">start</button> <button class="btn btn-danger" id="button2" onclick="dateevent2()" type="button">stop</button> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#button2').hide(); }); function dateevent1(){ var thisQuestion = $('#question{QID}'); var date1 = Date.now(); $('input[type=text]:eq(0)', thisQuestion).val(date1); $('#button1').hide(); $('#button2').show(); } function dateevent2(){ var thisQuestion = $('#question{QID}'); var date2 = Date.now(); $('input[type=text]:eq(1)', thisQuestion).val(date2); $('#ls-button-submit').trigger('click'); } </script> <style type="text/css">.answer-container { display: none; } </style>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Not exactly to the whole group (is you use the word "group" as a LimeSurvey group).unless specified the style applies to the whole group.
<style type="text/css"> .hide-answer .answer-container { display: none; }
As you see, it is not.I assumed that explaining the whole survey would be a bit tedious and unnecessary.
and this is what you got.I need to create a survey where I ask people to click on a start button, mentally count some seconds and then press a stop button.
Please Log in to join the conversation.