1、html
请选择
男
女
2、option 回显/选中 $("#sex").val(data.sex);
3、option 取值 var sex = $("#sex option:selected").val();
4、radio
radio 回显 $("#updateModal #workring").val(data.workring).attr("selected",true);
radio 选中 $("#updateModal #isweekday")[0].checked = "checked";
radio 取值 $("#updateModal #nonworkring option:selected").val();
5、下拉菜单选中
---------------------
作者:咸蛋超人
来源:博客园
原文:https://www.cnblogs.com/xdcr/p/6222573.html