我試圖創建一個寫入「其他」選項作爲最後一個單選按鈕的窗體。我試過沒有成功以下的變體:如何將「其他」文本輸入添加到HTML表單中的一組單選按鈕?
<label><input type="radio" name="candidate" value="option1">First Option</label>
<label><input type="radio" name="candidate" value="option2">Second Option</label>
<label><input type="radio" name="candidate" value="other">OTHER</label><input type="text" name="other" value="Write In" />
是否有可能與它的值傳遞給上提交不使用的JavaScript單選按鈕文本輸入一個單選按鈕?