//編輯頁面,單選框不可選.需要傳值,所以只禁用未選的一個。
if(id>0){
$("input[name='type']").each(function(){
if(!$(this).prop("checked")){
$(this).prop("disabled", true);
}
})
}