- Posts: 9
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
unique(self)
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var qID = {QID}; // Answers are exclusive by column $('#question'+qID+' input[type="radio"]').click(function(event){ var thisAnsCode = $(this).attr('id').split('-')[1]; $('#question'+qID+' input[id$="-'+thisAnsCode+'"]').prop('checked', false); $(this).prop('checked', true); }); }); </script>
Just one complement : here you can use unique(self)tpartner wrote: Create a normal array with no question validation.