3
I have a code in Jquery, and would like to apply the !important
in the CSS, as below:
$('.prodMenor:eq(6)').css('margin-right','0!important');
But the way I did it’s not working, there’s another way?
I found an alternative solution:
CSS:
.imp{margin-right: 0!important}
Jquery:
$('.prodMenor:eq(6)').addClass('imp');
Resolved! :)