Index: lams_central/web/questions/questionChoice.jsp =================================================================== diff -u -r50f84b60c632e10ccc6981f1ce142e28b23eb44c -ra4f58be9f0ccb00e0ae51f04b07832ad22e34a9c --- lams_central/web/questions/questionChoice.jsp (.../questionChoice.jsp) (revision 50f84b60c632e10ccc6981f1ce142e28b23eb44c) +++ lams_central/web/questions/questionChoice.jsp (.../questionChoice.jsp) (revision a4f58be9f0ccb00e0ae51f04b07832ad22e34a9c) @@ -136,6 +136,15 @@ // FF does not seem to do it right $(this).attr('checked', $(this).is(':checked')); }); + + // as the form HTML is being passed, not its real values + // we need to alter HTML manually on collection change + $('#collectionUid').change(function(){ + let collectionSelect = $(this), + value = collectionSelect.val(); + $('option', collectionSelect).removeAttr('selected'); + $('option[value="' + value + '"]', collectionSelect).attr('selected', 'selected'); + }); }); @@ -161,7 +170,7 @@