国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁(yè)javascriptradiobuttonJavascript Form - 如何獲取單選按鈕名稱

Javascript Form - 如何獲取單選按鈕名稱

我們想知道如何獲取單選按鈕名稱。

<html>
<body>
    <form name="form1">
        <input type="radio" name=myButton>Box 1
        <br><br>
        <input type="button" value="Get Name" onClick='console.log("The name of the button is: " +
                document.form1.myButton.name)'>
    </form>
</body>
</html>