In the following jQuery script, I am trying to replace "2500px" with $(document).height() but it's not working.
$("#mydiv").css("cssText", "position: relative; width:30%; height:2500px!important;");
This is what I did but it's not working:
$("#mydiv").css("cssText", "position: relative; width:30%; height:"+$(document).height()+"!important;");
Am I missing something here?