就这么一个p,我要得到slect选择项的text,也就是入口。$(":selected").text()和$("select").find("option:selected").text();都不行,因为还有多个选择框,$("select[name='deviceId']").find("option:selected").text();返回空字符串。
EasyUI改了dom树,看来只能加个id了。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
$("opption[value='4100001']").val();
获取select 选中的 text :
$(".easyui-combobox").find("option:selected").text();
$("select[name='deviceId']").val();