I need to loop through my website using jquery and change the class selector of all <a> elements which have href=#. I have this much but am not sure how to write the “for/each” portion in jquery.. any help out there?
if($("a.cs-wowslider-images-new").attr('href') == "#"){
$("a.cs-wowslider-images-new").removeClass("wow-fancy");
alert('removed');
}
…all you were missing was the .each() method: