- Posts: 5
- 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() { $("#question47").find('tbody:last').append("<tr id='javatbd387651X3X47SQ004' class='array1 subquestion-list questions-list'><th class='answertext'>Altro<input type='hidden' name='java387651X3X47SQ004'id='java387651X3X47SQ004'value=''/></th><td class='answer_cell_00SQ001 answer-item text-item'><label for='answer387651X3X47SQ004_SQ001'><input type='hidden' name='java387651X3X47SQ004_SQ001' id='java387651X3X47SQ004_SQ001'/><input type='text' name='387651X3X47SQ004_SQ001' id='answer387651X3X47SQ004_SQ001' class='empty' title='Università ' size='20' value='ciao'/></label></td><td class='answer_cell_00SQ002 answer-item text-item'><label for='answer387651X3X47SQ004_SQ002'><input type='hidden' name='java387651X3X47SQ004_SQ002' id='java387651X3X47SQ004_SQ002'/><input type='text' name='387651X3X47SQ004_SQ002'id='answer387651X3X47SQ004_SQ002'class='empty' title='Centri di ricerca pubblici' size='20' value=''/></label></td><td class='answer_cell_00SQ003 answer-item text-item'><label for='answer387651X3X47SQ004_SQ003'><input type='hidden' name='java387651X3X47SQ004_SQ003' id='java387651X3X47SQ004_SQ003'/><input type='text' name='387651X3X47SQ004_SQ003' id='answer387651X3X47SQ004_SQ003' class='empty' title='Fornitori di servizi innovativi *' size='20' value=''/></label></td><td class='answer_cell_00SQ004 answer-item text-item'><label for='answer387651X3X47SQ004_SQ004'><input type='hidden'name='java387651X3X47SQ004_SQ004' id='java387651X3X47SQ004_SQ004'/><input type='text' name='387651X3X47SQ004_SQ004'id='answer387651X3X47SQ004_SQ004' class='empty' title='Altre imprese manufatturiere' size='20' value=''/></label></td></tr>"); }); </script>
<script type="text/javascript" charset="utf-8"> <!-- $('#question56.question').delegate('input[type=text]:visible:enabled','blurkeyup',function(event){checkconditions($(this).attr('value'),$(this).attr('name'), $(this).attr('type')); return true;}) --> </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify some stuff var q1ID = {QID}; var q1 = $('#question'+q1ID); var q2 = $(q1).nextAll('.array-multi-flexi-text:eq(0)'); var q2ID = $(q2).attr('id').split('question')[1]; // Hide the array-texts $(q2).hide(); // Move the row from the array-texts to the array-numbers $('table.question tbody', q1).append($('.subquestion-list:eq(0)', q2)); // Fix up the array row background colours $('#question'+q1ID+' table.question tbody tr').each(function(i){ $(this).removeClass('array1 array2').addClass('array'+(2-(i%2))); }); }); </script>