回调函数
function(d) {
  $(':radio[name="lt"]').each(function() {
    $(this).prop('checked', $(this).val() == d.radio ? true : false);
  })
}

解决方案 »

  1.   

    function(json){
    $('input[name=lt][value='+json.radio+']').attr('checked',true)
    }
      

  2.   

    $(function(){
    $(':radio[value="'+json.radio+'"]').attr('checked',true)
    })
      

  3.   

    为什么要用prop  比attr好?
      

  4.   

    attr 是属性名
    prop 是属性值高版本 jq 中,.attr('checked',true) 是不对的,要 .attr('checked','checked')
      

  5.   


    function(data) {
      $(':radio[name="lt"]').each(function() {
        $(this).prop('checked', $(this).val() == data.radio ? true : false);
      })
    }
      

  6.   

    我记得1.8也是true,只有那种document是checke='checked'