- Posts: 10244
- Thank you received: 3644
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Some classes and attributes $('.array-multi-flexi table.question thead tr > *').each(function(i){ $(this).attr('data-column', i); }); $('.array-multi-flexi table.question tbody tr').each(function(i){ $('> *', this).each(function(i){ $(this).attr('data-column', i); }); }); // Hide unnecessary selects $('.array-multi-flexi table.question tbody tr').each(function(i){ $('select:visible:lt('+i+')', this).hide(); $('select:visible:eq(0)', this).hide(); }); // Remove unecessary rows and columns $('.array-multi-flexi table.question tbody tr:last').hide(); $('.array-multi-flexi th[data-column="1"], td[data-column="1"]').hide(); }); </script>
<!-- answer_td --> <td class="answer-cell-3 answer_cell_A1 answer-item radio-item text-center radio"> <input class="radio" type="radio" name="783318X281X2223SQ001" value="A1" id="answer783318X281X2223SQ001-A1" onclick="checkconditions(this.value, this.name, this.type)" aria-labelledby="label-answer783318X281X2223SQ001-A1" /> <label for="answer783318X281X2223SQ001-A1" ></label> <!-- The label text is provided inside a div, so final user can add paragraph, div, or whatever he wants in the subquestion text This field is related to the input thanks to attribute aria-labelledby --> <div class="visible-xs-block label-text" id="label-answer783318X281X2223SQ001-A1"> Very Good </div> </td> <!-- end of answer_td -->
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('input.radio[name="783318X281X2223SQ001-A1"]').attr('hidden', 'hidden'); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#answer783318X281X2223SQ001-A1').closest('.answer-item').find('*').hide(); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#answer783318X281X2223SQ001-A1').closest('.answer-item').find('*').remove(); }); </script>
<!-- answer_row --> <tr id="javatbd783318X281X2231SQ001" class=" well subquestion-list questions-list array2 "> <th class="answertext col-xs-12 col-sm-6"> Voice <input type="hidden" name="java783318X281X2231SQ001" id="java783318X281X2231SQ001" value="" /> </th> <!-- answer_td_checkboxes --> <td class="answer-cell-6 answer_cell_SQ001 question-item answer-item checkbox-item checkbox-item checkbox text-center"> <input type="hidden" name="java783318X281X2231SQ001_SQ001" id="java783318X281X2231SQ001_SQ001" value="" /> <input type="hidden" name="783318X281X2231SQ001_SQ001" id="answer783318X281X2231SQ001_SQ001" value="" /> <input type="checkbox" class="checkbox " name="cbox_783318X281X2231SQ001_SQ001" id="cbox_783318X281X2231SQ001_SQ001" onclick=" cancelBubbleThis(event); aelt=document.getElementById('answer783318X281X2231SQ001_SQ001'); jelt=document.getElementById('java783318X281X2231SQ001_SQ001'); if(this.checked) { aelt.value=1; jelt.value=1; fixnum_checkconditions(1,'783318X281X2231SQ001_SQ001',aelt.type); } else { aelt.value=''; jelt.value=''; fixnum_checkconditions('','783318X281X2231SQ001_SQ001',aelt.type); } return true;" onchange="checkconditions(this.value, this.name, this.type)" aria-labelledby="label-cbox_783318X281X2231SQ001_SQ001" /> <label for="cbox_783318X281X2231SQ001_SQ001"></label> <!-- The label text is provided inside a div, so final user can add paragraph, div, or whatever he wants in the subquestion text This field is related to the input thanks to attribute aria-labelledby --> <div class="visible-xs-block label-text" id="label-cbox_783318X281X2231SQ001_SQ001"> Dealer to Dealer (D2D) </div> </td> <!-- end of answer_td_checkboxes --> <!-- answer_td_checkboxes --> <td class="answer-cell-6 answer_cell_SQ002 question-item answer-item checkbox-item checkbox-item checkbox text-center"> <input type="hidden" name="java783318X281X2231SQ001_SQ002" id="java783318X281X2231SQ001_SQ002" value="" /> <input type="hidden" name="783318X281X2231SQ001_SQ002" id="answer783318X281X2231SQ001_SQ002" value="" /> <input type="checkbox" class="checkbox " name="cbox_783318X281X2231SQ001_SQ002" id="cbox_783318X281X2231SQ001_SQ002" onclick=" cancelBubbleThis(event); aelt=document.getElementById('answer783318X281X2231SQ001_SQ002'); jelt=document.getElementById('java783318X281X2231SQ001_SQ002'); if(this.checked) { aelt.value=1; jelt.value=1; fixnum_checkconditions(1,'783318X281X2231SQ001_SQ002',aelt.type); } else { aelt.value=''; jelt.value=''; fixnum_checkconditions('','783318X281X2231SQ001_SQ002',aelt.type); } return true;" onchange="checkconditions(this.value, this.name, this.type)" aria-labelledby="label-cbox_783318X281X2231SQ001_SQ002" /> <label for="cbox_783318X281X2231SQ001_SQ002"></label> <!-- The label text is provided inside a div, so final user can add paragraph, div, or whatever he wants in the subquestion text This field is related to the input thanks to attribute aria-labelledby --> <div class="visible-xs-block label-text" id="label-cbox_783318X281X2231SQ001_SQ002"> Dealer to Client (D2C) </div> </td> <!-- end of answer_td_checkboxes --> <!-- right --> </tr> <!-- end of answer_row -->
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Remove row 1, answer "A3" $('#question{QID} tr.answers-list:eq(0) input:radio[value="A3"]').nextAll('label').remove(); $('#question{QID} tr.answers-list:eq(0) input:radio[value="A3"]').remove(); // Remove row 1, answer "A4" $('#question{QID} tr.answers-list:eq(0) input:radio[value="A4"]').nextAll('label').remove(); $('#question{QID} tr.answers-list:eq(0) input:radio[value="A4"]').remove(); // Remove row 2, answer "A3" $('#question{QID} tr.answers-list:eq(1) input:radio[value="A3"]').nextAll('label').remove(); $('#question{QID} tr.answers-list:eq(1) input:radio[value="A3"]').remove(); // Remove row 2, answer "A4" $('#question{QID} tr.answers-list:eq(1) input:radio[value="A4"]').nextAll('label').remove(); $('#question{QID} tr.answers-list:eq(1) input:radio[value="A4"]').remove(); }); </script>