How to know which radio button input? is selected

as shown in the figure, there are two input tabs, which are two radio buttons. Choose to turn them on or off. After clicking Save Settings, a div on the page will be shown or hidden.
my problem is, when I click Save Settings, how do I know if I click Open or close.
ask God for a detailed introduction, thank you

Mar.03,2021

@click=showStatus
showStatus() {
    ......
}

I don't know if you use jQuery,. If so, just id, the save button and control it. I'll probably write it down. You can refer to

.

$('- sharp saves id'). On ("click", function () {


if($("input=name[list.inputname]").is(":checked")){
     
 }

})

Menu