Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Automatically proceed to next question after selecting answer - by: tpartner

$
0
0
Oh, wait, there's a conflict when clicking on the .label-clickable elements. Try this:

<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
 
		$('#question{QID} input.radio').click(function() {
			checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'));
			$('#movenextbtn, #movesubmitbtn').trigger('click');
		});
 
		$('#question{QID} .label-clickable').unbind();
		$('#question{QID} .label-clickable').click(function() {
			$('#question{QID} input.radio').unbind();
			var input = $(this).parent().find('input.radio');
			$(input).trigger('click');
			checkconditions($(input).attr('value'), $(input).attr('name'), $(input).attr('type'));
			$('#movenextbtn, #movesubmitbtn').trigger('click');
		});
	});
</script>

Viewing all articles
Browse latest Browse all 17529

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>