exclude a class from jquery for each

后端 未结 4 1421
情话喂你
情话喂你 2021-01-15 01:59

My code is like this

$(\"a[href]\").each(function () {
    if ($(this).attr(\"href\").toLowerCase().indexOf(\"javascript:\") != 0 &&     $(this).attr         


        
4条回答
  •  既然无缘
    2021-01-15 02:44

    try this code , Working fiddle

    $("a[href]:not(.tax-switch)").each(function () {
       $("#myDIV").append('

    '+ $(this).html()+'

    '); });

提交回复
热议问题