I know this is very silly question but I am stuck . I have been trying to add the position:absolute !important
using JQUERY
function .CSS()
but I found out that it is not happening .
my script is something like this .
$(document).ready(function(){
var winSize = $('#outerPage').height();
alert(winSize);
setTimeout(function () {
//$('#at4m-mobile-container').addClass('bottom');
$('body div.at4m-dock').css("top",winSize);
$('body div.at4m-dock').css({"position":"absolute","font-size":"200% !important"});
$('body div.at4m-dock-toggle').css("top",winSize);
}, 7500);
});
Please give me some suggestion
Thanks and regards
jQuery is not understanding the !important
attribute.
You can use attr()
Try:
$('body div.at4m-dock').attr('style', 'font-size: 200% !important;position:absolute !important;');
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments