- Posts: 1
- 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() { var defaultText = 'My default'; $('#question{QID} tr[id^="javatbd"]').each(function(i) { if($('input[type="text"]:eq(0)', this).val() == '') { $('input[type="text"]:eq(0)', this).val(defaultText) } }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var defaultText = 'My default'; $('#question{QID} tr[id^="javatbd"] input:text').each(function(i) { if($(this).val() == '') { $(this).val(defaultText) } }); }); </script>