- Posts: 11
- 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() { $('#question{QID} p.comment label').text('TEXT FOR COMMENT BOX:'); }); </script>
Do you have any javaScript errors in the console? Can you activate a small test survey for us to see?...but at the actual survey it doesn't work anymore and the customized text is gone.
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('.list-with-comment p.comment label').text('TEXT FOR COMMENT BOX:'); }); </script>
tpartner wrote: To ensure that the script only affects the question it is loaded in and not other questions on the same page, you could use this:
Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} p.comment label').text('TEXT FOR COMMENT BOX:'); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#question{QID} .text-item label').text('TEXT FOR COMMENT BOX:'); }); </script>