Hi,
on a standalone html form that I made I have a slider with a picture to the left and right of the slider.
and with a simple script i "capture" the value from the slider and have the images change accordingly.
Like this:
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$("#slider").change(function() {
sVal = $(this).val();
if(sVal <= 49) {$('#theImage1').attr('src','http://xxx.com/img/img1.png');
}
if(sVal > 49 && sVal <= 100) {$('#theImage').attr('src','http://xxx.com/img/img2.png');
}
});
});//]]>
</script>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$("#slider").change(function() {
sVal = $(this).val();
if(sVal <= 49) {
$('#theImage2').attr('src','http://xxx.com/img/img3.png');
}
if(sVal >= 50 && sVal <= 100) {
$('#theImage2').attr('src','http://xxx.coms/img/img4.png');
}
});
});//]]>
</script>
To get this to work with limesurvey and Multiple numerical input I'm thinking I have to have the slider ID and the value variable sVal.
Would greatly appreciate any help on the matter!
Cheers
/Adam