diff --git a/script/results.html b/script/results.html index 895bd00edc..5873e1c7b2 100644 --- a/script/results.html +++ b/script/results.html @@ -42,7 +42,7 @@ + hidden="hidden" >Download @@ -382,8 +382,18 @@ } function enableSendDownload() { - document.getElementById("download").removeAttribute("hidden"); - document.getElementById("send").removeAttribute("hidden"); + var selectBox = document.getElementById("selectBox"); + var selectedValue = selectBox.options[selectBox.selectedIndex].value + + + var download = document.getElementById("download") + var send = document.getElementById("send") + + download.innerHTML = 'Downlaod '+ selectedValue +' Feedback'; + send.innerHTML = 'Send '+ selectedValue +' Feedback by Mail'; + + download.removeAttribute("hidden"); + send.removeAttribute("hidden"); }