<label class="radio inline">
<input type="radio" name="sku_or_asin" id="sku_or_asin_hit1" value="1"> SKU-Specified
</label>
<label class="radio inline">
<input type="radio" name="sku_or_asin" id="sku_or_asin_hit2" value="2"> ASIN-Specified
</label>
<label class="radio inline">
<input type="radio" name="sku_or_asin" id="sku_or_asin_hit3" value="3" checked="checked"> Default Template
</label>
$('input[name="sku_or_asin"]:checked').val() //获取
$('#sku_or_asin_hit'+msg.sku_or_asin_hit).attr("checked",'checked'); //设置
php返回json格式 echo json_encode($row);
jquery发送ajax格式
$.ajax({
type:'POST',
url:'',
dataType:'json',
data:'type=editVlue&id='+id,
success:function(msg){
}
});