Hello everyone,
I am trying to figure out how to program a semantic differential question to auto-submit using the SSI_SubmitMe() function after a respondent moves the slider to the far left or right (two options). How may I achieve this?
Currently I have attempted to write JQuery Code to check the "left" style element if it is 0% (far left) or 100% (far right), but the code will not work.
<script type="text/javascript/">
$(document).ready(function() {
$('#[% QuestionName() %] .ui-slider').on('slidechange', function(event, ui) {
var leftPos = $('.ui-slider-handle').css('left');
if (leftPos === '0%' || leftPos === '100%') {
SSI_SubmitMe();
}
});
});
</script>
Thank you