Hello everyone,
I am in a dilemma, I am trying to ask a slider question, now my problem is that I want to change the text of the ends for images on a 5 point scale.
I found this in the forum que Tony hizo favor de realizar.
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
// Identify this question
var thisQuestion = $('#question{QID}');
// Define the text strings
var tipTexts = {
1: 'One',
2: 'Two',
3: 'Three',
4: 'Four',
5: 'Five',
};
$('input:text', thisQuestion).on('slideEnabled',function(){
var thisItem = $(this).closest('li');
// Insert custom tooltip
$('.tooltip-inner', thisItem).addClass('tooltip-inner-1 hidden');
$('.tooltip', thisItem).append('<div class="tooltip-inner tooltip-inner-2">'+tipTexts[$(this).val()]+'</div>');
// Listener on slider
$(this).on('slide slideStop', function(event) {
// Handle dynamic tooltip text
$('.tooltip-inner-2', thisItem).text(tipTexts[$(this).val(bvcbcvbcv)]);
});
});
});
</script>
it runs correctly, but I cannot change these texts for images.
Does anyone have any solution for this?
Additionally, I would like to know if the offset bar can be made larger than 12.
I appreciate your answer too much.
The topic has been locked.