- Posts: 16
- 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() { // Remove rows $('#javatbd{SGQ}SQ001').remove(); $('#javatbd{SGQ}SQ002').remove(); $('#javatbd{SGQ}SQ003').remove(); $('#javatbd{SGQ}SQ006').remove(); $('#javatbd{SGQ}SQ008').remove(); // Fix up the row classes var rowClass = 1; $('#question{QID} table.subquestions-list tbody tr').each(function(i) { if($(this).hasClass('sub-header-row')) { rowClass = 1 } else { rowClass++; $(this).removeClass('array1 array2') if(rowClass % 2 == 0) { $(this).addClass('array2'); } else { $(this).addClass('array1'); } } }); }); </script>
<script> $(function() { $('#javatbd{SGQ}SQ001').hide(); $('#javatbd{SGQ}SQ002').hide(); $('#javatbd{SGQ}SQ003').hide(); $('#javatbd{SGQ}SQ006').hide(); $('#javatbd{SGQ}SQ008').hide(); }); </script>
If i don't make error : an input inside an hidden (display:none} element can not be tabbed ?tpartner wrote: That's very close to mine but I prefer to remove the rows instead of hiding in case someone is tabbing through the form.