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")){
     
 }

})

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4443e-650b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4443e-650b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?