<label><input type="radio" name="type" id="optionsRadios1" value="0">完全匹配</label>
<label><input type="radio" name="type" id="optionsRadios2" value="1" >模糊匹配</label>
jquery选中的单选按钮取值
1.var type = $(":radio:checked").val();
2.type = $("input[name=type]:checked").val();
3(没试过).$(":radio").each(function(i,v){
if($(this).attr('checked')=='checked'){
sex = $(this).val();
return false;//return false就不执行each了
}
});