<select id="Gender" name="Gender">
<option value="1">男</option>
<option value="0">女</option>
</select>
方法如下:
$("#Gender").val(data.Gender); //设置当前性别选中项
<div class="radio">
<label> <input name="Gender" id="Gender" type="radio" disabled value="1" />男</label>
<label><input name="Gender" id="Gender" type="radio" disabled value="0" />女</label>
</div>
方法如下:
$("input[name=Gender][value=" + data.Gender + "]").attr("checked", true); //设置当前性别选中项