过滤第一个这样写:$("#select_parentId").find("option:not(:first and )").remove();
那我要除去第一个和第二个怎么写呢?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
$("#select_parentId").find("option:gt(1)").remove();
这种问题要学会自己翻文档http://jquery.cuishifeng.cn/gt.html
嗯嗯,非常感谢