hasclass jQuery if condition with css function

We have a div with id my_header and a button with id my_button.

With jQuery we create the following function:

  • When clicking on the button a function is executed in which we select the id my_header, if it has the class set-color we change the color of the div with id my_header with the css function to blue.
Comments

PHP Captcha


Interesting Articles