Not able to remove a class from an element using JQuery

I am using this plugin to add JQuery to a specific page. I am trying to remove a span class.
Here is a part of the DOM

<!–// Header –>

<div class=”careerfy-subheader careerfy-subheader-with-bg” style=”background-image: url(‘http://www.sohodragontalent.com/wp-content/uploads/subheader-bg.jpg’);”>
<span class=”careerfy-banner-transparent” style=”background-color: rgba(246,248,250,0.81) !important;”></span>

I am trying to remove the class named “careerfy-banner-transparent” from the parent class “careerfy-subheader careerfy-subheader-with-bg”

This is the JQuery Code that I have written but for some reason it doesn’t work.

jQuery(“.careerfy-subheader careerfy-subheader-with-bg”).removeClass(“careerfy-banner-transparent”);

Any help on this matter would be greatly appreciated.

Read more here:: Not able to remove a class from an element using JQuery

Leave a Reply

Your email address will not be published. Required fields are marked *