【JQuery 选择器】 案例

1、查找以id的某个字段开头的元素

            setTimeout(function () {
                $("a[id^='menu_']").each(function () {
                    $(this).removeClass("current");
                });
                $("#menu_" + menu_id).addClass("current");
            }, 200)

原文地址:https://www.cnblogs.com/kikyoqiang/p/12220864.html