只需一步,快速开始
2020-8-12 16:11| 发布者: admin| 查看: 59| 评论: 0
1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("selected",true);
1.你的option中没有设置value,取不到值。如果设置了,$("#22").val() 2.要取到fdsfds这个值,用$("#22").html()
评论
广告服务|投稿要求|禁言标准|版权说明|免责声明|手机版|小黑屋|推扬网 ( 粤ICP备18134897号 )|网站地图 | 邮箱:vayae@hotmail.com
GMT+8, 2025-5-1 08:44 , Processed in 0.061517 second(s), 29 queries .
Powered by Discuz! X3.4
© 2001-2017 Comsenz Inc.