1

While the tab is active i want to change class from iconcolorblack to iconcolorwhite but i am not getting it. how to do that:

<div class="navbar-inner main-nav-lower" >
     <ul class="nav nav-pills navcolor">
        <li id="jobsHead"><a href="#" data-toggle="tab">
           <i class="fa fa-clock-o iconSizeMedium iconColorblack"></i>Jobs</a></li>
             <li id="ManageData"><a href="#" data-toggle="tab">
                <i class="fa fa-cog iconSizeMedium iconColorblack"></i>Manage Data</a></li>
    </ul>
</div>

I have used:

 $("#ManageData").find("iconColorblack").addClass("iconColorwhite").remove("iconColorblack");

But its not seems to be working.

1 Answer 1

4

change

$("#ManageData").find("iconColorblack").addClass("iconColoorwhite").remove("iconColorblack");

to

$("#ManageData").find(".iconColorblack").addClass("iconColorwhite").removeClass("iconColorblack");

perhaps?

Sign up to request clarification or add additional context in comments.

1 Comment

sorry its seems i have written wrongly in question. i have changed can you please help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.