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?

  1. objective: need way remove class 'active' nav element when active:

enter image description here

  1. i have attempted create jquery code locate nav element contains class 'active' in turn remove given class selected nav element. please refer following image: enter image description here

thanks help! sorry poor post formatting

welcome!

  1. $('#btndiv').toggleclass('active'); should fit needs.
  2. $( "#datatable tbody tr" ).on( "click", function() { // handler }); create handler on click event here.

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -