I'm still facing the problem above, I read from another maxdiff topic on this forum that I should place the code in one question (from the 4 questions on a page) and add the question codes of the other questions to this code. So something like this.
So I have the code beneath in question 1 and the other 3 questions have no code. But unfortunately it still not works... What am I doing wrong?
/><script type="text/javascript" charset="utf-8">
$(document).ready(function(){
onePerColumn({14456}, 'You cannot select this anwer twice.');
onePerColumn({14459}, 'You cannot select this anwer twice.');
onePerColumn({14462}, 'You cannot select this anwer twice.');
onePerColumn({14465}, 'You cannot select this anwer twice.');
function onePerColumn(qID, msg) {
$('#question'+qID+' table.question tbody tr td').click(function () {
var columnClass = $(this).attr('class').split(' ')[0];
if ($('.'+columnClass+' input.radio:checked').length > 1) {
alert (msg);
$('input.radio:checked', this).attr('checked', false);
}
});
}
});
</script>