https://scrimba.com/scrim/cbGLdwHa
My scrim is linked above.
I have a div that appears after you click the submit button. Inside is a span that that needs to output the relevant text depending on which "rating" was selected on the first page. I have tried quite a few things but it seems to break the whole component (the ratings buttons 1, 2, 3, 4, 5 no longer can be selected once i try to target the span with the id "rating-selected" and output depending on which number has the class of .select)
I have googled and i think im doing it somewhat right, i must be putting the document.getElementById('rating-selected').textContent = text
in the wrong place in the JS file.
Text means
let text = document.querySelector(".select").innerHtml;