Hi!
I want to use this topic to discover how I can randomize all but last few answers. It is common that in the end of the question we have some "DK, "none", "other" answers we do not want to randomize with others.
With this workaround
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Function to allow randomization of all answers except the last one in Multiple options and List/radio questions
function partRand(sID, gID, qID) {
// Find the number of answers
var ansCount = ""
$( "div#question" + qID + " td li" ).each(function(i) {
ansCount = (i + 1);
});
$( "input#answer" + sID + "X" + gID + "X" + qID + "1" ).parent().appendTo($( "#question" + qID + " td ul" ));
$( "input#answer" + sID + "X" + gID + "X" + qID + "2" ).parent().appendTo($( "#question" + qID + " td ul" ));
$( "input#answer" + sID + "X" + gID + "X" + qID + "3" ).parent().appendTo($( "#question" + qID + " td ul" ));
}
// Call the function with the SID, GID and QID
partRand(sID, gID, qID);
});
</script>
we can (with some adjustments) easily randomize all but last few (1,2,3 ...) answers.
But what I can't do is to use this script with other option included. When I use the script it puts answer even after other option. but I want other to be the last answer.
How can I do this?
Thanks,
Andrej