获取选中select :
$("#id option:selected").val();
自定义radio:
$("input[name=sex][value="+data.sex+"]").attr("checked",true);
获取radio:
$("input[name='sex']:checked").val()
设置input不能编辑:
$("#cashNum").attr("disabled","disabled");
获取选中select :
$("#id option:selected").val();
自定义radio:
$("input[name=sex][value="+data.sex+"]").attr("checked",true);
获取radio:
$("input[name='sex']:checked").val()
设置input不能编辑:
$("#cashNum").attr("disabled","disabled");
jQuery选择器全面总结02-13
jQuery实现圣诞节礼物动画案例解析01-27
利用浏览器全屏api实现js全屏02-20
Jquery事件的连接使用示例02-08
网友评论文明上网理性发言 已有0人参与
发表评论: