MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / getSelectedRadioValue

Function getSelectedRadioValue

options/options.js:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5// 获取当前被选中的单选框的值
6function getSelectedRadioValue() {
7 let selectedValue = null;
8
9 radioButtons.forEach(radioButton => {
10 if (radioButton.checked) {
11 selectedValue = radioButton.id;
12 }
13 });
14
15 return selectedValue;
16}
17
18
19// Save the API key when the Save button is clicked

Callers 1

options.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected