Check whether a checkbox is checked with JavaScript.
Read on how to do it in this link: https://www.w3schools.com/howto/howto_js_display_checkbox_text.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_display_checkbox_text