javascript - How to access element(s) and Remove a spefiic Class rooted within the DOM? -
stackoverflow new me , first post :] could please advise best way create jquery code following objective? objective: need way remove class 'active' nav element when active: i have attempted create jquery code locate nav element contains class 'active' in turn remove given class selected nav element. please refer following image: thanks help! sorry poor post formatting welcome! $('#btndiv').toggleclass('active'); should fit needs. $( "#datatable tbody tr" ).on( "click", function() { // handler }); create handler on click event here.