I am trying to update the css of my navbar using jQuery.
Where you would normally define the css as:
.navbar-static-top .navbar-nav > .active > a{
You can use below js to apply css.
jQuery(".navbar-static-top .navbar-nav").find(".active").children("a").css("background-color","#000000");
I hope this code is useful for you.
try out using find
jQuery(".navbar-static-top .navbar-nav").find(".active").find("a").css("background-color","#000");
Thanks !