I have a matrix question (QID288) - there are 5 rows (A,B,C,D,E) and 6 columns (1,2,3,4,5,-) - it is a radio button matrix so that each of the lettered rows can only have one column selected.
In a later question I was to access the selections that were made in the earlier matrix question.
As far as I can see I can’t used pipetext. From that I can see which lettered row had a selection made… but not which selection was made…
matrixTablex = "${q://QID288/ChoiceGroup/SelectedChoices}";
So that does not help… unless I am missing something.
The other option seems to be to us a jquery.
Something like
radioButton = jQuery(#QID288~1~1);
to access A1. But I cannot work out what the attributes would be that I should be… one suggestion seems to be
radioButton.is(“:checked”);
but I don’t get any results when I try that.
I assume that the solution must be really simple.
Maybe my javascript code is in the wring place… should it be in the addOnReady function?