라디오 버튼 목록 값을 다시로드하는 방법은 무엇입니까? 다음과 같이 나는 라디오 버튼 값 다시로드
document.getElementById('txtvalue' + id).value = document.getElementById('txtoriginalvalue' + id + '2').innerHTML;
나는 라디오 버튼 같은 시도하지만 난 다시로드 할 수 없습니다, 상자 값을 assignedtext. 제발 도와주세요. 감사.
라디오 버튼 목록 값을 다시로드하는 방법은 무엇입니까? 다음과 같이 나는 라디오 버튼 값 다시로드
document.getElementById('txtvalue' + id).value = document.getElementById('txtoriginalvalue' + id + '2').innerHTML;
나는 라디오 버튼 같은 시도하지만 난 다시로드 할 수 없습니다, 상자 값을 assignedtext. 제발 도와주세요. 감사.
radioButtonVal = document.getElementById를 ('radiooriginalvalue'+ ID + '2') innerHTML을.;
$ ("input [name = 라디오 버튼 이름]"+ id + "] [value ="+ radioButtonVal + "]"). attr ('checked', 'checked');
이렇게하면 출력이 나옵니다.
아래 링크를 확인하십시오.
http://jsbin.com/nohoqomuru/1/edit?html,js,output
function Cancel(){
var sId = '#'+selectedId;
$(sId).prop("checked", true);
$('#Save').attr('disabled' , true);
$('#Cancel').attr('disabled' , true);
}
'다시로드 라디오 버튼'에 대해 좀 더 설명 할 수 있습니까? http://jsfiddle.net – codebot
편집하는 동안 라디오 버튼 값이 설정되지 않습니다. – IMRUP
라디오 버튼을 설정하고 싶다면 DOM을 공유 할 수 있습니다. –