您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

jQuery获取选中内容及设置元素属性的方法_jquery

2024/2/17 17:06:19发布9次查看
获取选中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);
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product