- Posts: 4
- 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 qID = QQ; var newtext = 'Some inserted text...'; $('#question'+qID+' table.question thead td').text(newtext).addClass('insertedText'); }); </script>
td.insertedText { text-align: right; vertical-align: bottom; color: red; }
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var qID = QQ; var newtext = 'Some inserted text...'; $('#question'+qID+' table.question thead > tr > td').text(newtext).addClass('insertedText'); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var qID = QQ; var newhtml = '<table><tr><td>Some inserted HTML...</td></tr></table>'; $('#question'+qID+' table.question thead > tr > td').html(newhtml).addClass('insertedText'); }); </script>