1、alert($("#selectType")[0].options.length);
2、alert($("#selectType option").length);
jquery获取select的option个数
最新推荐文章于 2023-03-07 16:30:09 发布
1、alert($("#selectType")[0].options.length);
2、alert($("#selectType option").length);