I am looking for a way to deactivate CSS hover functionality using JavaScript.
Within a form, there is a button that sends data to the database server. By utilizing OnClientClick()
of an ASP.NET Button control, my goal is to modify the text of the element to 'Submitting..', change the background color of the button to Light Grey and most importantly, eliminate the hover effect defined in my CSS for .button:hover, .content-form input.button:hover, and #comment-form #submit:hover.
.button:hover,
.content-form input.button:hover,
#comment-form #submit:hover
{
background-color: #333;
}
The main focus is on implementing Javascript to disable the aforementioned CSS effects.
e.g. OnClientClick="getElementByID('ButtonName').blahblahblah;"