Index: lams_tool_scratchie/web/pages/tblmonitoring/burningQuestions.jsp =================================================================== diff -u -rc68a4f95651c0a6649845eb0441eb53c114f8e63 -r4b60aca672d2736d5c435c61555ab6c1415588cd --- lams_tool_scratchie/web/pages/tblmonitoring/burningQuestions.jsp (.../burningQuestions.jsp) (revision c68a4f95651c0a6649845eb0441eb53c114f8e63) +++ lams_tool_scratchie/web/pages/tblmonitoring/burningQuestions.jsp (.../burningQuestions.jsp) (revision 4b60aca672d2736d5c435c61555ab6c1415588cd) @@ -31,12 +31,18 @@ //change button's data-expanded attribute $(this).data("expanded", !isExpanded); }); + + $('.options-show-link').click(function(e){ + // so browser does not go to the top of page + e.preventDefault(); + + // hide link, show answers + let link = $(this), + itemUid = link.data('itemUid'); + link.remove(); + $('#options-' + itemUid).show(); + }); }); - - function showOptions(itemUid) { - $('#options-show-' + itemUid).remove(); - $('#options-' + itemUid).show(); - } @@ -107,7 +113,8 @@ - +