Thank you very much.
When I replace the space with a period in addition to your comment after ".ls-question-message.ls-em-tip", it works:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('.ls-question-message.ls-em-tip.em_default.ls-em-success').text('custom tip text');
});
</script>
But now the exclamation mark symbol is gone. Therefore, I copied the html code from the exclamation mark symbol from here:
fontawesome.com/v4.7.0/icon/exclamation-circle
And then I changed the ".text" to ".html" so that I can insert html code inside of the javascipt:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('.ls-question-message.ls-em-tip.em_default.ls-em-success').html('<i class="fa fa-exclamation-circle" aria-hidden="true"></i> custom tip text');
});
</script>
PS: I just saw that this procedure changes all tips in one question group (or question page when format: display question by question is activated) because all the tips of different question types use the same class. To solve this problem, the current question has to be referenced with "#question{QID}":
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#question{QID} .ls-question-message.ls-em-tip.em_default.ls-em-success').html('<i class="fa fa-exclamation-circle" aria-hidden="true"></i> custom tip text');
});
</script>
Sorry for the long post.