Remove class from all elements jQuery

We have div with id my_header and two set classes set-deg0 and set-font that set styles.
We have a list ul with id my_list with 4 dots and 4 different classes whose names are differentiated by their order number and four different styles that set different colors to each text.
There are also two buttons with two different ids.

  • We select the first button with id apply, when we click on it a function is executed where  the div with id my_header loses its two default applied classes.
  • We select the second button with id apply_all, clicking on it executes a function where the elements of the list with id my_header lose their two classes applied by default.the elements of the list with id my_list lose their respective set-deg classes according to their index order number, starting from 0 to the end of the list.
Comments

PHP Captcha


Interesting Articles