- Posts: 54
- 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(){ //Hide the last radio in the first row $('#question'+{QID}+' tr.answers-list:first input.radio:last').remove(); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ //Hide the last radio in the first row $('#question'+{QID}+' tr.answers-list:first input.radio:last').hide(); $('#question'+{QID}+' tr.answers-list:eq(2) input.radio:eq(2)').hide(); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ //Hide the last radio in the first row $('#question'+{QID}+' tr.answers-list:first input.radio:last').hide(); //Hide the 3rd radio in the 3rd row $('#question'+{QID}+' tr.answers-list:eq(2) input.radio:eq(2)').hide(); //Hide the first radio of Option 4 $('#answer433587X129X10164-1').hide(); }); </script>
Ah, good point - replace all instances of :While the radio buttons don't show, it seems that they can still be clicked.
.hide()
.remove()
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#question{QID} li.question-item:eq(0) span.comment').hide(); }); </script>
boriginal wrote:
Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ //Hide what ever you want by adding the code of your interactive element $('#cbox_585145X141X34956_1').hide(); }); </script>