You selector is wrong .
var adElem = $('.ad.spf-nolink').removeClass('ClassName');
solved JQuery remove div class [duplicate]
You selector is wrong .
var adElem = $('.ad.spf-nolink').removeClass('ClassName');
solved JQuery remove div class [duplicate]