Dear Mr.Parnter,
I don't want to be too demanding to volunteers, but there is a further difficulty that has taken me days to resolve, would it be possible if me to get further help from you?
I'd like to add 3 hidden rows to this table: .pm,.ma.,.pma. And I'd like to have one of the rows shown depending on the checked radios. For example,if radios in tr. p and tr.m are checked and the radio in tr. a is unchecked, the row of .pm should be shown.
I've tried to use js IF function but it never work, let alone multiple conditions:
Code:
<script type="text/javascript" >
$(document).on('ready pjax:scriptcomplete',function(){
var thisQuestion = $('#question{QID}');
var thisTable = $(':radio', thisQuestion).closest('table');
function showpm(){
if($(':radio', thisQuestion).is(':checked')){$(".pm").show()}
};
$(':radio', thisTable).on('click', function(event){
showpm()
});
});
</script>
I would appreciate if you could give me some help or some hints.