작은 문제가 있습니다. 이 기능의 문제점은 무엇입니까? 나는 모른다. 라디오 버튼을 선택하면 팝업 알림 창이 필요합니다. 모든 답장을 보내 주셔서 감사합니다.라디오 버튼 onChange 기능
HTML
<input type="radio" name="radioButton" class="choice" value="1">
<input type="radio" name="radioButton" class="choice" value="2">
<input type="radio" name="radioButton" class="choice" value="3">
자바 스크립트
var FormFields =
{
init: function()
{
var radio = document.getElementsByName("radioButton");
radio.onchange = FormFields.showAlert;
},
showAlert: function()
{
alert("Bye!");
},
};
아니 해상도,하지만 것,'여분을 가지고'상기 거기 끝내다. – lifetimes