[英]Reloading Radio button value
如何重新加載單選按鈕列表值? 我分配了如下文本框值,
document.getElementById('txtvalue' + id).value = document.getElementById('txtoriginalvalue' + id + '2').innerHTML;
我為單選按鈕嘗試了相同的操作,但是我無法重新加載。 請幫幫我。 謝謝。
查看下面的鏈接。
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);
}
radioButtonVal = document.getElementById('radiooriginalvalue'+ id +'2')。innerHTML;
$(“ input [name = radiobuttonname'” + id +“'] [value =” + radioButtonVal +“]”)。attr('checked','checked');
通過這樣做,我得到了輸出。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.