본문 바로가기

JavaScript/jQuery

[jQuery] radio버튼 체크 이벤트

$('input[type=radio][name=name]').change(function() {
	if (this.value == '01') {
		alert("1");
	}
	else if (this.value == '02') {
		alert("2");
	}
});