I am trying to apply an inline css using below statement.
$('.WarningCount').parent().css('margin-left', '-1.4% !important;');
But it doesn't work, it doesn't get applied only. I cannot see this style in the Developer console. I had to override the entire style to make it work.
$('.WarningCount').parent().attr('style', 'margin-left:-1.4% !important;');
Any reason what could be the real issue here.