1、alert($("#selectType")[0].options.length);
2、alert($("#selectType option").length);
jquery获取select的option个数
最新推荐文章于 2024-05-05 15:54:12 发布
1、alert($("#selectType")[0].options.length);
2、alert($("#selectType option").length);