I've configured the hover opacity in my CSS,
.button-simple:hover {
opacity:.70;
filter:alpha(opacity=70);
filter: "alpha(opacity=70)";
}
However, the hover opacity is not displaying after adding this line to my code,
$('input[type=submit]').attr('disabled', false).css({opacity:1,cursor:"pointer"});
Any suggestions on how I can include the hover CSS?
UPDATE:
The reason I can't utilize !important
in my CSS is because I'm initially disabling the submit button with this line,
$('input[type=submit]',parent).attr('disabled', true).css({opacity:0.4,cursor:"default"});
If I use !important
in my CSS, the disabled button will also have the hover effect, which is not desired.