回调函数
function(d) {
$(':radio[name="lt"]').each(function() {
$(this).prop('checked', $(this).val() == d.radio ? true : false);
})
}
function(d) {
$(':radio[name="lt"]').each(function() {
$(this).prop('checked', $(this).val() == d.radio ? true : false);
})
}
$('input[name=lt][value='+json.radio+']').attr('checked',true)
}
$(':radio[value="'+json.radio+'"]').attr('checked',true)
})
prop 是属性值高版本 jq 中,.attr('checked',true) 是不对的,要 .attr('checked','checked')
function(data) {
$(':radio[name="lt"]').each(function() {
$(this).prop('checked', $(this).val() == data.radio ? true : false);
})
}