I want to apply height
for specific div using jquery but not able to override the \'!important\'
keyword using jquery
.
Here is
$('#divL3.myclass').attr('style', 'height:0px !important');
Would something like the above work?
Have you tried this?
$('#divL3.myclass').css('height', '0px !important');
Try This :
$( '.myclass' ).each(function () {
this.style.setProperty( 'height', '0px', 'important' );
});
.setProperty () enables you to pass a third argument which represents the priority.