Is it Possible to Make an Element or Class Active via Javascript/jQuery

Is it Possible to Make an Element or Class Active via Javascript/jQuery
0

#1

Ok, folks, Hi! Can you all please help me out here?

Goal/logic: make clicking the green button on the form activate an active class for .metal (class for form container), causing the whole form to appear as if it being pressed like a regular button (blue surround-LED will flash in process)

I’ve nearly exhausted options, I don’t know how to make my form container become active in javascript/jQuery.

Code Pen here: https://codepen.io/IDCoder/pen/LrQNOR?editors=0110
These are some examples of some code experiments that I’ve tried:

/*
//operation test using .addClass()/.removeClass
1.
$('form').on('submit', function(event) {
    event.preventDefault();
  $(this).find('metal').removeClass('hover');
  $(this).find('metal').addClass('no-hover');
  console.log(submit);
});

//operation test using .mouseover()/.mouseleave
2.
$(".whatever").mouseover(function(){
$(".metal").css({
          "background": "",
          "color": "",
        });
});
*/

split this topic #2

A post was merged into an existing topic: Disable Hover feature with Javascript or jQuery


closed #3

unlisted #4